Skip to content

Instantly share code, notes, and snippets.

@onemanbucket
Created February 23, 2012 10:01
Show Gist options
  • Save onemanbucket/1892045 to your computer and use it in GitHub Desktop.
Save onemanbucket/1892045 to your computer and use it in GitHub Desktop.
outerSize() on input with type=hidden should be 0 (jquery bug)
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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment