Skip to content
Permalink
Browse files

accordion: partial fix for #4011

  • Loading branch information
jzaefferer committed Jan 30, 2009
1 parent 506ae46 commit a1e9c63911b729ddffcd6e2fa86bb7af070fde84
Showing with 2 additions and 4 deletions.
  1. +2 −4 ui/ui.accordion.js
@@ -394,17 +394,15 @@ $.extend($.ui.accordion, {
options.toShow.animate({height: "show"}, options);
return;
}
var hideHeight = options.toHide.height(),
showHeight = options.toShow.height(),
difference = showHeight / hideHeight,
overflow = options.toShow.css('overflow'),
var overflow = options.toShow.css('overflow'),
showProps = {},
hideProps = {},
fxAttrs = [ "height", "paddingTop", "paddingBottom" ];
$.each(fxAttrs, function(i, prop) {
hideProps[prop] = 'hide';
showProps[prop] = parseFloat(options.toShow.css(prop));
});
showProps.height = options.toShow.height();
options.toShow.css({ height: 0, overflow: 'hidden' }).show();
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{
step: function(now, settings) {

0 comments on commit a1e9c63

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