From: Aaron Eisenberger Date: Tue, 24 Jun 2008 13:53:19 +0000 (+0000) Subject: fix for clip to better work with images (animates wrapper for images only) X-Git-Tag: 1.5.1~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26c84c7e9b7809d650c930d02d61fd0ae15b9a05;p=jquery-ui.git fix for clip to better work with images (animates wrapper for images only) --- 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