8000 Effects (Bounce): Fixed call to .outerHeight/Width() for jQuery 1.8 c… · faroncoder/jquery-ui@ffd5e6e · GitHub
[go: up one dir, main page]

Skip to content

Commit ffd5e6e

Browse files
committed
Effects (Bounce): Fixed call to .outerHeight/Width() for jQuery 1.8 compat.
1 parent 037a509 commit ffd5e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.effects.bounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ $.effects.bounce = function(o) {
3232
$.effects.createWrapper(el); // Create Wrapper
3333
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
3434
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
35-
var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3);
35+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight(true) / 3 : el.outerWidth(true) / 3);
3636
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
3737
if (mode == 'hide') distance = distance / (times * 2);
3838
if (mode != 'hide') times--;

0 commit comments

Comments
 (0)
0