Skip to content
Permalink
Browse files

Accordion: Reset overflowX and overflowY after animations to fix over…

…flow in Opera <11.6. Fixes #6971 - Accordion animation bug in Opera 11.01 with jQuery 1.4.3+.
  • Loading branch information...
scottgonzalez committed Jan 31, 2012
1 parent 6074b06 commit ecddf469d7924d88d72e57a4806996fc50fa50ae
Showing with 12 additions and 2 deletions.
  1. +12 −2 ui/jquery.ui.accordion.js
@@ -438,7 +438,11 @@ $.extend( $.ui.accordion, {
}

var showOverflow = options.toShow.css( "overflow" ),
showOverflowX = options.toHide.css( "overflowX" ),
showOverflowY = options.toHide.css( "overflowY" ),
hideOverflow = options.toHide.css( "overflow" ),
hideOverflowX = options.toHide.css( "overflowX" ),
hideOverflowY = options.toHide.css( "overflowY" ),
percentDone = 0,
showProps = {},
hideProps = {},
@@ -521,9 +525,15 @@ $.extend( $.ui.accordion, {
complete: function() {
options.toShow.css({
width: originalWidth,
overflow: showOverflow
overflow: showOverflow,
overflowX: showOverflowX,
overflowY: showOverflowY
});
options.toHide.css({
overflow: hideOverflow,
overflowX: hideOverflowX,
overflowY: hideOverflowY
});
options.toHide.css( "overflow", hideOverflow );
options.complete();
}
});

0 comments on commit ecddf46

Please sign in to comment.
You can’t perform that action at this time.