mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #11469. Exclude margins from the negative property check.
This commit is contained in:
parent
f40c862d1e
commit
07c8a9b244
9
src/effects.js
vendored
9
src/effects.js
vendored
@ -636,9 +636,12 @@ jQuery.extend( jQuery.fx, {
|
||||
|
||||
// Ensure props that can't be negative don't go there on undershoot easing
|
||||
jQuery.each( fxAttrs.concat.apply( [], fxAttrs ), function( i, prop ) {
|
||||
jQuery.fx.step[ prop ] = function( fx ) {
|
||||
jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
|
||||
};
|
||||
// exclude marginTop, marginLeft, marginBottom and marginRight from this list
|
||||
if ( prop.indexOf( "margin" ) ) {
|
||||
jQuery.fx.step[ prop ] = function( fx ) {
|
||||
jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
if ( jQuery.expr && jQuery.expr.filters ) {
|
||||
|
Loading…
Reference in New Issue
Block a user