From: Corey Frang Date: Fri, 20 Jul 2012 23:50:34 +0000 (-0500) Subject: Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core X-Git-Tag: 1.9.0-rc.1~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ed64ccfef4e39ca21152c42e75a5614e2488ae3f;p=jquery-ui.git Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core --- diff --git a/ui/jquery.ui.effect-slide.js b/ui/jquery.ui.effect-slide.js index d61047b8b..134b058c7 100644 --- a/ui/jquery.ui.effect-slide.js +++ b/ui/jquery.ui.effect-slide.js @@ -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"