]> source.dussan.org Git - jquery-ui.git/commitdiff
fix for clip to better work with images (animates wrapper for images only)
authorAaron Eisenberger <aaronchi@gmail.com>
Tue, 24 Jun 2008 13:53:19 +0000 (13:53 +0000)
committerAaron Eisenberger <aaronchi@gmail.com>
Tue, 24 Jun 2008 13:53:19 +0000 (13:53 +0000)
ui/effects.clip.js

index 8132896864c1ffd655852cdc062aa82a39e3668d..21f90f3f28d66ea05a4c6c885774fe7e55dd3cdc 100644 (file)
@@ -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