Adds box-sizing check for IE9 inputs and buttons

1.7/enhancement_8685
timmywil 2011-04-14 16:26:20 -04:00
parent 1dda994c46
commit d4b31a15ff
1 changed files with 2 additions and 1 deletions

View File

@ -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" ) {