diff options
author | Corey Frang <gnarf@gnarf.net> | 2012-07-20 18:09:34 -0500 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2012-07-20 18:09:34 -0500 |
commit | d8f45623b8601d15871b77cc5da2c2ba293dac19 (patch) | |
tree | 44fb224f3d30f178cbc7f7ed526e56076299fecf /ui | |
parent | d945d297f89e8a600cd4f494207c58516b8d433c (diff) | |
download | jquery-ui-d8f45623b8601d15871b77cc5da2c2ba293dac19.tar.gz jquery-ui-d8f45623b8601d15871b77cc5da2c2ba293dac19.zip |
Effects: Fixing call to outerHeight/Width in drop effect for compat with 1.8 core
Backport of commit 4e3d31e
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.effects.drop.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.effects.drop.js b/ui/jquery.effects.drop.js index 769855a5e..cda8bd7eb 100644 --- a/ui/jquery.effects.drop.js +++ b/ui/jquery.effects.drop.js @@ -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 |