mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 16:04:57 -05:00
Add back unit in the width/height step function. Fixes #10669.
This commit is contained in:
2
src/effects.js
vendored
2
src/effects.js
vendored
@@ -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 );
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user