From e132c1b363e66b0a4a03eeb17c4fdbf316c982fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 11 Aug 2009 18:46:00 +0000 Subject: [PATCH] accordion: fix for #4436 --- .../accordion_option_fillSpace_true.html | 50 +++++++++++++++++++ ui/ui.accordion.js | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tests/visual/accordion/accordion_option_fillSpace_true.html diff --git a/tests/visual/accordion/accordion_option_fillSpace_true.html b/tests/visual/accordion/accordion_option_fillSpace_true.html new file mode 100644 index 000000000..06a06b4fb --- /dev/null +++ b/tests/visual/accordion/accordion_option_fillSpace_true.html @@ -0,0 +1,50 @@ + + + + Accordion Visual Test : Accordion option autoHeight true + + + + + + + + + +
+
+

Accordion Header 1

+
+ Accordion Content 1 +
+

Accordion Header 2

+
+ Accordion Content 2 +

paragraph

+

paragraph

+

paragraph

+

paragraph

+

paragraph

+

paragraph

+

paragraph

+
+

Accordion Header 3

+
+ Accordion Content 3 +
    +
  • list item
  • +
  • list item
  • +
  • list item
  • +
+
+
+
+ + + diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 1b8337547..911499baa 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -213,7 +213,7 @@ $.widget("ui.accordion", { if($.browser.msie) { this.element.parent().css('overflow', defOverflow); } this.headers.each(function() { - maxHeight -= $(this).outerHeight(); + maxHeight -= $(this).outerHeight(true); }); var maxPadding = 0;