From: timmywil Date: Thu, 14 Apr 2011 20:26:20 +0000 (-0400) Subject: Adds box-sizing check for IE9 inputs and buttons X-Git-Tag: 1.6b1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d4b31a15ff7bd0ffb6576229d34a98ce1c9c4085;p=jquery.git Adds box-sizing check for IE9 inputs and buttons --- 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" ) {