We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f4562 commit 037a509Copy full SHA for 037a509
ui/jquery.effects.slide.js
@@ -28,7 +28,7 @@ $.effects.slide = function(o) {
28
$.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
29
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
30
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
31
- var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) : el.outerWidth( true ));
32
if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
33
34
// Animation
0 commit comments