Insure width/height do not return a negative number.
This commit is contained in:
parent
3bb82a34de
commit
b32ec31d89
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue