mirror of
https://github.com/jquery/jquery.git
synced 2026-01-26 02:18:13 -05:00
Insure width/height do not return a negative number.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user