Side navigation
#11377 closed bug (wontfix)
Opened February 23, 2012 10:04AM UTC
Closed February 23, 2012 03:34PM UTC
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: | ||
Blocked by: | Blocking: |
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!
Attachments (0)
Change History (2)
Changed February 23, 2012 10:06AM UTC by comment:1
Changed February 23, 2012 03:34PM UTC by comment:2
component: | unfiled → css |
---|---|
priority: | undecided → low |
resolution: | → wontfix |
status: | new → closed |
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.
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"]