Skip to content

Commit d8f4562

Browse files
committed
Effects: Fixing call to outerHeight/Width in drop effect for compat with 1.8 core
Backport of commit 4e3d31e
1 parent d945d29 commit d8f4562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.effects.drop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $.effects.drop = function(o) {
2828
$.effects.createWrapper(el); // Create Wrapper
2929
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
3030
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
31-
var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
31+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) / 2 : el.outerWidth( true ) / 2);
3232
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
3333

3434
// Animation

0 commit comments

Comments
 (0)