mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
accordion: partial fix for #4011
This commit is contained in:
parent
506ae46a6d
commit
a1e9c63911
@ -394,10 +394,7 @@ $.extend($.ui.accordion, {
|
|||||||
options.toShow.animate({height: "show"}, options);
|
options.toShow.animate({height: "show"}, options);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var hideHeight = options.toHide.height(),
|
var overflow = options.toShow.css('overflow'),
|
||||||
showHeight = options.toShow.height(),
|
|
||||||
difference = showHeight / hideHeight,
|
|
||||||
overflow = options.toShow.css('overflow'),
|
|
||||||
showProps = {},
|
showProps = {},
|
||||||
hideProps = {},
|
hideProps = {},
|
||||||
fxAttrs = [ "height", "paddingTop", "paddingBottom" ];
|
fxAttrs = [ "height", "paddingTop", "paddingBottom" ];
|
||||||
@ -405,6 +402,7 @@ $.extend($.ui.accordion, {
|
|||||||
hideProps[prop] = 'hide';
|
hideProps[prop] = 'hide';
|
||||||
showProps[prop] = parseFloat(options.toShow.css(prop));
|
showProps[prop] = parseFloat(options.toShow.css(prop));
|
||||||
});
|
});
|
||||||
|
showProps.height = options.toShow.height();
|
||||||
options.toShow.css({ height: 0, overflow: 'hidden' }).show();
|
options.toShow.css({ height: 0, overflow: 'hidden' }).show();
|
||||||
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{
|
options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{
|
||||||
step: function(now, settings) {
|
step: function(now, settings) {
|
||||||
|
Loading…
Reference in New Issue
Block a user