]> source.dussan.org Git - jquery-ui.git/commitdiff
Effects: Fixing call to outerHeight/Width in drop effect for compat with 1.8 core
authorCorey Frang <gnarf@gnarf.net>
Fri, 20 Jul 2012 23:09:34 +0000 (18:09 -0500)
committerCorey Frang <gnarf@gnarf.net>
Fri, 20 Jul 2012 23:09:34 +0000 (18:09 -0500)
Backport of commit 4e3d31e

ui/jquery.effects.drop.js

index 769855a5ed5544dc86fcb4e996eade93cc545971..cda8bd7ebfc4febbf0bd0f7d52d550757c31c9c9 100644 (file)
@@ -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