Skip to content
Permalink
Browse files

fix for clip to better work with images (animates wrapper for images …

…only)
  • Loading branch information
aaronchi committed Jun 24, 2008
1 parent ad2a61d commit 26c84c7e9b7809d650c930d02d61fd0ae15b9a05
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 26c84c7

Please sign in to comment.
You can’t perform that action at this time.