diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 77226fb8a..f760cec0f 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -158,8 +158,11 @@ $.widget("ui.accordion", { var o = this.options, maxHeight; if (o.fillSpace) { - + + if($.browser.msie) { var defOverflow = this.element.parent().css('overflow'); this.element.parent().css('overflow', 'hidden'); } maxHeight = this.element.parent().height(); + if($.browser.msie) { this.element.parent().css('overflow', defOverflow); } + this.headers.each(function() { maxHeight -= $(this).outerHeight(); });