]> source.dussan.org Git - jquery.git/commitdiff
Insure width/height do not return a negative number.
authorBrandon Aaron <brandon.aaron@gmail.com>
Wed, 19 Dec 2007 18:23:46 +0000 (18:23 +0000)
committerBrandon Aaron <brandon.aaron@gmail.com>
Wed, 19 Dec 2007 18:23:46 +0000 (18:23 +0000)
src/core.js

index ad938f2b53ace3d0c6a5ac0cbdb6506dbdaec398..33e109b92e598df0ce49c15a484a4401e2921a24 100644 (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 );