Skip to content

Commit 037a509

Browse files
committed
Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core
backport of ed64ccf
1 parent d8f4562 commit 037a509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.effects.slide.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $.effects.slide = function(o) {
2828
$.effects.createWrapper(el).css({overflow:'hidden'}); // 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}) : el.outerWidth({margin:true}));
31+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) : el.outerWidth( true ));
3232
if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
3333

3434
// Animation

0 commit comments

Comments
 (0)