mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core
backport of ed64ccf
This commit is contained in:
parent
d8f45623b8
commit
037a509dba
2
ui/jquery.effects.slide.js
vendored
2
ui/jquery.effects.slide.js
vendored
@ -28,7 +28,7 @@ $.effects.slide = function(o) {
|
||||
$.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
|
||||
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
|
||||
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
|
||||
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 ));
|
||||
if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
|
||||
|
||||
// Animation
|
||||
|
Loading…
Reference in New Issue
Block a user