From 26c84c7e9b7809d650c930d02d61fd0ae15b9a05 Mon Sep 17 00:00:00 2001 From: Aaron Eisenberger Date: Tue, 24 Jun 2008 13:53:19 +0000 Subject: [PATCH] fix for clip to better work with images (animates wrapper for images only) --- ui/effects.clip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5