diff options
author | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-24 13:53:19 +0000 |
---|---|---|
committer | Aaron Eisenberger <aaronchi@gmail.com> | 2008-06-24 13:53:19 +0000 |
commit | 26c84c7e9b7809d650c930d02d61fd0ae15b9a05 (patch) | |
tree | 4e6e2329be75b1ce5cb650b66a01d8652b854252 /ui/effects.clip.js | |
parent | ad2a61daaf7f103872c5c4831c99734269d10d83 (diff) | |
download | jquery-ui-26c84c7e9b7809d650c930d02d61fd0ae15b9a05.tar.gz jquery-ui-26c84c7e9b7809d650c930d02d61fd0ae15b9a05.zip |
fix for clip to better work with images (animates wrapper for images only)
Diffstat (limited to 'ui/effects.clip.js')
-rw-r--r-- | ui/effects.clip.js | 2 |
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 |