diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-04-14 16:26:20 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-14 16:26:20 -0400 |
commit | d4b31a15ff7bd0ffb6576229d34a98ce1c9c4085 (patch) | |
tree | 7f6c0bc215d0a9ddc3962d60633d733dc34dbab8 /src | |
parent | 1dda994c463f01977c7126407998d61efed218a5 (diff) | |
download | jquery-d4b31a15ff7bd0ffb6576229d34a98ce1c9c4085.tar.gz jquery-d4b31a15ff7bd0ffb6576229d34a98ce1c9c4085.zip |
Adds box-sizing check for IE9 inputs and buttons
Diffstat (limited to 'src')
-rw-r--r-- | src/css.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index 385c21a07..9db659967 100644 --- a/src/css.js +++ b/src/css.js @@ -344,7 +344,8 @@ function getWH( elem, name, extra ) { // We're addressing the way Firefox handles certain inputs and buttons, // offsetWidth/height actually returns a normal width/height boxSizing = rinputbutton.test( elem.nodeName ) && - curCSS( elem, "-moz-box-sizing" ) === "border-box"; + ( curCSS( elem, "-moz-box-sizing" ) === "border-box" || + curCSS( elem, "box-sizing" ) === "border-box" ); // IE will return auto if we try to grab a width/height that is not set if ( boxSizing || cur === "auto" ) { |