Bug Tracker

Modify

Ticket #11377 (closed bug: wontfix)

Opened 16 months ago

Last modified 16 months ago

outerSize() on input with type=hidden should be 0

Reported by: onemanbucket Owned by:
Priority: low Milestone: None
Component: css Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

This is the commit in question:  https://github.com/jquery/jquery/commit/80ad14bd14467c547c2867f2677ca581aa29bf33

JSfiddle example:  http://jsfiddle.net/jL7Lr/

When setting a padding on INPUT, this css rule gets taken into account when using outerWidth() on input elements with type="hidden".

Browsers don't seem to honor padding on hidden type inputs when rendering the page so this seems like a bug to me!

Change History

comment:1 Changed 16 months ago by onemanbucket

I should add, this broke jquery ui layout plugin for us ( http://layout.jquery-dev.net/) and the obvious workaround is to create a css rule to set padding to 0 on input[type="hidden"]

comment:2 Changed 16 months ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to wontfix
  • Status changed from new to closed
  • Component changed from unfiled to css

The change was made so we might provide useful values for hidden elements, rather than just 0. This is a big help for our users. It doesn't make as much sense with hidden inputs, but it is worth the tradeoff.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.