mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
Effects: Fixing call to outerHeight/Width in drop effect for compat with 1.8 core
Backport of commit 4e3d31e
This commit is contained in:
parent
d945d297f8
commit
d8f45623b8
2
ui/jquery.effects.drop.js
vendored
2
ui/jquery.effects.drop.js
vendored
@ -28,7 +28,7 @@ $.effects.drop = function(o) {
|
||||
$.effects.createWrapper(el); // 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}) / 2 : el.outerWidth({margin:true}) / 2);
|
||||
var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) / 2 : el.outerWidth( true ) / 2);
|
||||
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
|
||||
|
||||
// Animation
|
||||
|
Loading…
Reference in New Issue
Block a user