aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomykaira <tomykaira@gmail.com>2011-05-25 15:52:53 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-25 15:52:53 -0400
commit129d5c75aca94ae636ba6396124c4938e43a50f3 (patch)
treeabbe9a17e52265bdf5f86360e0c3bd13190eb6aa
parentaf35f0bbc9064ec66bee19c730bf4cb9de2834db (diff)
downloadjquery-ui-129d5c75aca94ae636ba6396124c4938e43a50f3.tar.gz
jquery-ui-129d5c75aca94ae636ba6396124c4938e43a50f3.zip
effects.blind: Save the wrapper status if already wrapped. Fixes #6245 - position: absolute is lost when .stop() is used with .show('blind').
-rw-r--r--ui/jquery.effects.blind.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/jquery.effects.blind.js b/ui/jquery.effects.blind.js
index 7a59d8a75..8ef544faa 100644
--- a/ui/jquery.effects.blind.js
+++ b/ui/jquery.effects.blind.js
@@ -31,7 +31,12 @@ $.effects.effect.blind = function( o ) {
animation = {},
wrapper, distance;
- $.effects.save( el, props );
+ // if already wrapped, the wrapper's properties are my property. #6245
+ if ( el.parent().is( ".ui-effects-wrapper" ) ) {
+ $.effects.save( el.parent(), props );
+ } else {
+ $.effects.save( el, props );
+ }
el.show();
wrapper = $.effects.createWrapper( el ).css({
overflow: "hidden"