Skip to content

Commit

Permalink
Accordion: Reset overflowX and overflowY after animations to fix over…
Browse files Browse the repository at this point in the history
…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 ecddf46
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ui/jquery.ui.accordion.js
Expand Up @@ -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 = {},
Expand Down Expand Up @@ -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();
}
});
Expand Down

0 comments on commit ecddf46

Please sign in to comment.