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 Content 1
+
+
+
+ Accordion Content 2
+
paragraph
+
paragraph
+
paragraph
+
paragraph
+
paragraph
+
paragraph
+
paragraph
+
+
+
+ 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;