mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
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
|
||||
jQuery.swap( elem, props, getWH );
|
||||
|
||||
return val;
|
||||
return Math.max(0, val);
|
||||
}
|
||||
|
||||
return jQuery.curCSS( elem, name, force );
|
||||
|
Loading…
Reference in New Issue
Block a user