aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-07-21 09:58:03 -0400
committerScott González <scott.gonzalez@gmail.com>2012-07-21 09:58:03 -0400
commitffd5e6efaf6f4149d647c065838f2b20e36c0093 (patch)
tree8bb40f9157f8717e71681cbbc71fc8a9634a8148
parent037a509dba0e8fe58b5d6da2c84b572f2f07e3f7 (diff)
downloadjquery-ui-ffd5e6efaf6f4149d647c065838f2b20e36c0093.tar.gz
jquery-ui-ffd5e6efaf6f4149d647c065838f2b20e36c0093.zip
Effects (Bounce): Fixed call to .outerHeight/Width() for jQuery 1.8 compat.
-rw-r--r--ui/jquery.effects.bounce.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.effects.bounce.js b/ui/jquery.effects.bounce.js
index a9385a8ae..053b4c168 100644
--- a/ui/jquery.effects.bounce.js
+++ b/ui/jquery.effects.bounce.js
@@ -32,7 +32,7 @@ $.effects.bounce = 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}) / 3 : el.outerWidth({margin:true}) / 3);
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight(true) / 3 : el.outerWidth(true) / 3);
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
if (mode == 'hide') distance = distance / (times * 2);
if (mode != 'hide') times--;