aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-07-20 18:09:34 -0500
committerCorey Frang <gnarf@gnarf.net>2012-07-20 18:09:34 -0500
commitd8f45623b8601d15871b77cc5da2c2ba293dac19 (patch)
tree44fb224f3d30f178cbc7f7ed526e56076299fecf /ui
parentd945d297f89e8a600cd4f494207c58516b8d433c (diff)
downloadjquery-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.js2
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