aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/effects.clip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/effects.clip.js b/ui/effects.clip.js
index 813289686..21f90f3f2 100644
--- a/ui/effects.clip.js
+++ b/ui/effects.clip.js
@@ -31,7 +31,7 @@ $.effects.clip = function(o) {
size: (direction == 'vertical') ? 'height' : 'width',
position: (direction == 'vertical') ? 'top' : 'left'
};
- var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
+ var distance = (direction == 'vertical') ? animate.height() : animate.width();
if(mode == 'show') { animate.css(ref.size, 0); animate.css(ref.position, distance / 2); } // Shift
// Animation