Commit b32ec31d authored by Brandon Aaron's avatar Brandon Aaron

Insure width/height do not return a negative number.

parent 3bb82a34
...@@ -798,7 +798,7 @@ jQuery.extend({ ...@@ -798,7 +798,7 @@ jQuery.extend({
else else
jQuery.swap( elem, props, getWH ); jQuery.swap( elem, props, getWH );
return val; return Math.max(0, val);
} }
return jQuery.curCSS( elem, name, force ); return jQuery.curCSS( elem, name, force );
......
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