Add back unit in the width/height step function. Fixes #10669.

This commit is contained in:
timmywil
2011-11-07 10:46:46 -05:00
parent a7e911b7fe
commit 1e677f30f6
2 changed files with 16 additions and 1 deletions

2
src/effects.js vendored
View File

@@ -620,7 +620,7 @@ jQuery.extend( jQuery.fx, {
// Do not set anything below 0
jQuery.each([ "width", "height" ], function( i, prop ) {
jQuery.fx.step[ prop ] = function( fx ) {
jQuery.style( fx.elem, prop, Math.max(0, fx.now) );
jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
};
});