accordion: overflow is set to hidden during calculations for fillSpace in IE6 (fixes #3845)

This commit is contained in:
Paul Bakaus 2009-01-27 14:38:57 +00:00
parent 0d4d56ae45
commit 98fc50ab13

View File

@ -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();
});