<style>
#main { font-size: 10pt; font-family: 'trebuchet ms', verdana, arial; }
- #navigation * { margin: 0; padding: 0; font-size: 12px; }
+ #list1 *, #navigation * { margin: 0; padding: 0; font-size: 12px; }
</style>
</head>
<body>
});
test("resize", function() {
- var expected = $('#list1').accordion();
+ var expected = $('#list1').accordion({
+ fillSpace: true
+ });
var sizes = [];
expected.find(".ui-accordion-content").each(function() {
expected.find(".ui-accordion-content").each(function() {
sizes2.push($(this).outerHeight());
});
- same(sizes, sizes2);
+ same(sizes, [38, 38, 38]);
- expected.find(".ui-accordion-content:first").height(500)
- var sizes3 = [];
+ expected.parent().height(500);
+ expected.accordion("resize");
+ var sizes2 = [];
+ expected.find(".ui-accordion-content").each(function() {
+ sizes2.push($(this).outerHeight());
+ });
+ same(sizes2, [446, 446, 446]);
});
})(jQuery);