Insure width/height do not return a negative number.

This commit is contained in:
Brandon Aaron 2007-12-19 18:23:46 +00:00
parent 3bb82a34de
commit b32ec31d89

View file

@ -798,7 +798,7 @@ jQuery.extend({
else
jQuery.swap( elem, props, getWH );
return val;
return Math.max(0, val);
}
return jQuery.curCSS( elem, name, force );