Skip to content

Commit f908281

Browse files
committed
Accordion: Added test for heightStyle: fill with absolutely positioned sibling.
1 parent 3294520 commit f908281

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/accordion/accordion_options.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ test("{ fillSpace: true } with sibling", function() {
132132
test("{ fillSpace: true } with multiple siblings", function() {
133133
$("#navigationWrapper").height(500);
134134
var sibling = $("<p>Lorem Ipsum</p>");
135-
$("#navigationWrapper").prepend( sibling.height(100) );
136-
$("#navigationWrapper").prepend( sibling.clone().height(50) );
135+
$("#navigationWrapper")
136+
.prepend( sibling.clone().height(100) )
137+
.prepend( sibling.clone().height(100).css( "position", "absolute" ) )
138+
.prepend( sibling.clone().height(50) );
137139
//sibling.outerHeight(true) == 126
138140
equalHeights($('#navigation').accordion({ fillSpace: true}), 244, 256);
139141
});

0 commit comments

Comments
 (0)