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

index d61047b8b553bc5b17f0fe8bec40c6af2af12b26..134b058c7db7c4401c39e700f2febb4e1d44f71c 100644 (file)
@@ -29,9 +29,7 @@ $.effects.effect.slide = function( o, done ) {
        // Adjust
        $.effects.save( el, props );
        el.show();
-       distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]({
-               margin: true
-       });
+       distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
 
        $.effects.createWrapper( el ).css({
                overflow: "hidden"