From 98fc50ab1370a4b5a1a5b37f27a37e544205acf6 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Tue, 27 Jan 2009 14:38:57 +0000 Subject: [PATCH] accordion: overflow is set to hidden during calculations for fillSpace in IE6 (fixes #3845) --- ui/ui.accordion.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); });