diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -432,7 +432,7 @@ jQuery.extend( jQuery.fx, { _default: function(fx){ if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) { - fx.elem.style[ fx.prop ] = fx.now + fx.unit; + fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit; } else { fx.elem[ fx.prop ] = fx.now; } |