Skip to content
Permalink
Browse files

accordion: fix for #4436

  • Loading branch information
jzaefferer committed Aug 11, 2009
1 parent 5c5e083 commit e132c1b363e66b0a4a03eeb17c4fdbf316c982fd
Showing with 51 additions and 1 deletion.
  1. +50 −0 tests/visual/accordion/accordion_option_fillSpace_true.html
  2. +1 −1 ui/ui.accordion.js
@@ -0,0 +1,50 @@
<!doctype html>
<html lang="en">
<head>
<title>Accordion Visual Test : Accordion option autoHeight true</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../../ui/ui.accordion.js"></script>
<script type="text/javascript">
$(function() {
$("#accordion").accordion({
fillSpace: true
});
})
</script>
</head>
<body>

<div style="height: 500px; width: 500px; border: 1px solid red;">
<div id="accordion" style="width:490px;">
<h3><a href="#">Accordion Header 1</a></h3>
<div>
Accordion Content 1
</div>
<h3><a href="#">Accordion Header 2</a></h3>
<div>
Accordion Content 2
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
<p>paragraph</p>
</div>
<h3><a href="#">Accordion Header 3</a></h3>
<div>
Accordion Content 3
<ul>
<li>list item</li>
<li>list item</li>
<li>list item</li>
</ul>
</div>
</div>
</div>

</body>
</html>
@@ -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;

0 comments on commit e132c1b

Please sign in to comment.
You can’t perform that action at this time.