File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ $.effects.effect.blind = function( o, done ) {
27
27
motion = rpositivemotion . test ( direction ) ,
28
28
animation = { } ,
29
29
show = mode === "show" ,
30
- wrapper , distance ;
30
+ wrapper , distance , margin ;
31
31
32
32
// if already wrapped, the wrapper's properties are my property. #6245
33
33
if ( el . parent ( ) . is ( ".ui-effects-wrapper" ) ) {
@@ -41,21 +41,23 @@ $.effects.effect.blind = function( o, done ) {
41
41
} ) ;
42
42
43
43
distance = wrapper [ ref ] ( ) ;
44
+ margin = parseInt ( wrapper . css ( ref2 ) ) ;
44
45
45
46
animation [ ref ] = show ? distance : 0 ;
46
47
if ( ! motion ) {
47
48
el
48
49
. css ( vertical ? "bottom" : "right" , 0 )
49
- . css ( vertical ? "top" : "left" , "" )
50
+ . css ( vertical ? "top" : "left" , "auto " )
50
51
. css ( { position : "absolute" } ) ;
51
- animation [ ref2 ] = show ? 0 : distance ;
52
+
53
+ animation [ ref2 ] = show ? margin : distance + margin ;
52
54
}
53
55
54
56
// start at 0 if we are showing
55
57
if ( show ) {
56
58
wrapper . css ( ref , 0 ) ;
57
59
if ( ! motion ) {
58
- wrapper . css ( ref2 , distance ) ;
60
+ wrapper . css ( ref2 , margin + distance ) ;
59
61
}
60
62
}
61
63
You can’t perform that action at this time.
0 commit comments