r793 - trunk/ui
r793 - trunk/ui
Author: joern.zaefferer
Date: Mon Oct 13 08:20:26 2008
New Revision: 793
Modified:
trunk/ui/ui.accordion.js
Log:
accordion: reset overflow to original value after animation completed,
fixes some layout issues
Modified: trunk/ui/ui.accordion.js
==============================================================================
--- trunk/ui/ui.accordion.js (original)
+++ trunk/ui/ui.accordion.js Mon Oct 13 08:20:26 2008
@@ -293,6 +293,7 @@
difference = showHeight / hideHeight,
padding = options.toShow.outerHeight() - options.toShow.height(),
margin = options.toShow.css('marginBottom'),
+ overflow = options.toShow.css('overflow')
tmargin = options.toShow.css('marginTop');
options.toShow.css({ height: 0, overflow: 'hidden', marginTop: 0,
marginBottom: -padding }).show();
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{
@@ -309,7 +310,7 @@
if ( !options.autoHeight ) {
options.toShow.css("height", "auto");
}
- options.toShow.css({marginTop: tmargin, marginBottom: margin});
+ options.toShow.css({marginTop: tmargin, marginBottom: margin,
overflow: overflow});
options.complete();
}
});