diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-01-31 10:42:01 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-01-31 10:42:01 -0500 |
commit | ecddf469d7924d88d72e57a4806996fc50fa50ae (patch) | |
tree | 6fb8220edee770269be5ad3fbe3f87313857c4e8 /ui/jquery.ui.accordion.js | |
parent | 6074b0698a01ec52c30eae91dbeb883e8f5432e1 (diff) | |
download | jquery-ui-ecddf469d7924d88d72e57a4806996fc50fa50ae.tar.gz jquery-ui-ecddf469d7924d88d72e57a4806996fc50fa50ae.zip |
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+.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r-- | ui/jquery.ui.accordion.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 48d61448d..a019ca127 100644 --- a/ui/jquery.ui.accordion.js +++ b/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(); } }); |