aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-08 16:13:18 -0500
committerScott González <scott.gonzalez@gmail.com>2011-02-08 16:13:18 -0500
commitfb35d4e5c5638dac72cb53ed37ee240b2fe91f46 (patch)
treea8e3d6a0e5c6c8642c49416c58737264a21a7c99 /ui
parentfba3349e38d9a9545f10e2ac1ae893053c9fc02a (diff)
downloadjquery-ui-fb35d4e5c5638dac72cb53ed37ee240b2fe91f46.tar.gz
jquery-ui-fb35d4e5c5638dac72cb53ed37ee240b2fe91f46.zip
Accordion: Reset overflow on both content panels being animated, not just the one being shown. Fixes #6957 - .ui-accordion-content's overflow value does not change back to auto in IE 6.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.accordion.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index 9f836491d..1c30ba89b 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -219,7 +219,7 @@ $.widget( "ui.accordion", {
if ( options.heightStyle === "fill" ) {
// IE 6 treats height like minHeight, so we need to turn off overflow
- // in ordder to get a reliable height
+ // in order to get a reliable height
// we use the minHeight support test because we assume that only
// browsers that don't support minHeight will treat height as minHeight
if ( !$.support.minHeight ) {
@@ -366,8 +366,7 @@ $.widget( "ui.accordion", {
toShow: toShow,
toHide: toHide,
complete: complete,
- down: toShow.length && ( !toHide.length || ( toShow.index() < toHide.index() ) ),
- autoHeight: options.heightStyle !== "content"
+ down: toShow.length && ( !toHide.length || ( toShow.index() < toHide.index() ) )
}, additional );
} else {
toHide.hide();
@@ -418,7 +417,8 @@ $.extend( $.ui.accordion, {
version: "@VERSION",
animations: {
slide: function( options, additions ) {
- var overflow = options.toShow.css( "overflow" ),
+ var showOverflow = options.toShow.css( "overflow" ),
+ hideOverflow = options.toHide.css( "overflow" ),
percentDone = 0,
showProps = {},
hideProps = {},
@@ -497,13 +497,11 @@ $.extend( $.ui.accordion, {
duration: options.duration,
easing: options.easing,
complete: function() {
- if ( !options.autoHeight ) {
- options.toShow.css( "height", "" );
- }
options.toShow.css({
width: originalWidth,
- overflow: overflow
+ overflow: showOverflow
});
+ options.toHide.css( "overflow", hideOverflow );
options.complete();
}
});