Skip to content

Commit 129d5c7

Browse files
tomykairascottgonzalez
authored andcommitted
effects.blind: Save the wrapper status if already wrapped. Fixes #6245 - position: absolute is lost when .stop() is used with .show('blind').
1 parent af35f0b commit 129d5c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/jquery.effects.blind.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ $.effects.effect.blind = function( o ) {
3131
animation = {},
3232
wrapper, distance;
3333

34-
$.effects.save( el, props );
34+
// if already wrapped, the wrapper's properties are my property. #6245
35+
if ( el.parent().is( ".ui-effects-wrapper" ) ) {
36+
$.effects.save( el.parent(), props );
37+
} else {
38+
$.effects.save( el, props );
39+
}
3540
el.show();
3641
wrapper = $.effects.createWrapper( el ).css({
3742
overflow: "hidden"

0 commit comments

Comments
 (0)