Skip to content

Commit ecddf46

Browse files
committed
Accordion: Reset overflowX and overflowY after animations to fix overflow in Opera <11.6. Fixes #6971 - Accordion animation bug in Opera 11.01 with jQuery 1.4.3+.
1 parent 6074b06 commit ecddf46

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ui/jquery.ui.accordion.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,11 @@ $.extend( $.ui.accordion, {
438438
}
439439

440440
var showOverflow = options.toShow.css( "overflow" ),
441+
showOverflowX = options.toHide.css( "overflowX" ),
442+
showOverflowY = options.toHide.css( "overflowY" ),
441443
hideOverflow = options.toHide.css( "overflow" ),
444+
hideOverflowX = options.toHide.css( "overflowX" ),
445+
hideOverflowY = options.toHide.css( "overflowY" ),
442446
percentDone = 0,
443447
showProps = {},
444448
hideProps = {},
@@ -521,9 +525,15 @@ $.extend( $.ui.accordion, {
521525
complete: function() {
522526
options.toShow.css({
523527
width: originalWidth,
524-
overflow: showOverflow
528+
overflow: showOverflow,
529+
overflowX: showOverflowX,
530+
overflowY: showOverflowY
531+
});
532+
options.toHide.css({
533+
overflow: hideOverflow,
534+
overflowX: hideOverflowX,
535+
overflowY: hideOverflowY
525536
});
526-
options.toHide.css( "overflow", hideOverflow );
527537
options.complete();
528538
}
529539
});

0 commit comments

Comments
 (0)