Commit d4b31a15 authored by timmywil's avatar timmywil

Adds box-sizing check for IE9 inputs and buttons

parent 1dda994c
...@@ -344,7 +344,8 @@ function getWH( elem, name, extra ) { ...@@ -344,7 +344,8 @@ function getWH( elem, name, extra ) {
// We're addressing the way Firefox handles certain inputs and buttons, // We're addressing the way Firefox handles certain inputs and buttons,
// offsetWidth/height actually returns a normal width/height // offsetWidth/height actually returns a normal width/height
boxSizing = rinputbutton.test( elem.nodeName ) && 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 // IE will return auto if we try to grab a width/height that is not set
if ( boxSizing || cur === "auto" ) { if ( boxSizing || cur === "auto" ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment