aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Frang <gnarf@gnarf.net>2012-07-20 18:51:40 -0500
committerCorey Frang <gnarf@gnarf.net>2012-07-20 18:51:40 -0500
commit037a509dba0e8fe58b5d6da2c84b572f2f07e3f7 (patch)
tree4b78dc1464c1e99bac5212a4612c8b3556e519b0
parentd8f45623b8601d15871b77cc5da2c2ba293dac19 (diff)
downloadjquery-ui-037a509dba0e8fe58b5d6da2c84b572f2f07e3f7.tar.gz
jquery-ui-037a509dba0e8fe58b5d6da2c84b572f2f07e3f7.zip
Effects: Fixing call to outerHeight/Width in slide effect for compat with 1.8 core
backport of ed64ccf
-rw-r--r--ui/jquery.effects.slide.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.effects.slide.js b/ui/jquery.effects.slide.js
index adcafdfbb..5c7fc0e5d 100644
--- a/ui/jquery.effects.slide.js
+++ b/ui/jquery.effects.slide.js
@@ -28,7 +28,7 @@ $.effects.slide = function(o) {
$.effects.createWrapper(el).css({overflow:'hidden'}); // 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}) : el.outerWidth({margin:true}));
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) : el.outerWidth( true ));
if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
// Animation