I'm doing a vertical dropdown with Kwicks for jQuery: http://www.jeremymartin.name/projects.php?project=kwicks
Take A look at the markup:
<ul class="kwicks">
<li id="kwick1">
<div class="title">Title 1</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
</li>
<li id="kwick2">
<div class="title">Title 2</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
<div class="item"><b>Item 5</b> Description 5</div>
<div class="item"><b>Item 6</b> Description 6</div>
</li>
<li id="kwick3">
<div class="title">Title 3</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
</li>
<li id="kwick4">
<div class="title">Title 4</span>
<div class="item"><b>Item 1</b> Description 1</div>
<div class="item"><b>Item 2</b> Description 2</div>
<div class="item"><b>Item 3</b> Description 3</div>
<div class="item"><b>Item 4</b> Description 4</div>
</li>
</ul>
Javascript:
$().ready(function() {
$('.kwicks').kwicks({
min : 15,
spacing : 9,
isVertical : true,
sticky : true,
event : 'click'
});
});
See it live here: http://jsfiddle.net/6xL5M/3/
As you can see, they have different content size, and for default, Kwicks for jQuery show all with the same Size, isnt there a way to make each one have his own height?
Thanks a lot in Advance.
Here is how I Solved this: http://jsfiddle.net/6xL5M/5/
I didn't use the Kwicks Plugin for that, just Simple jQuery, that basically is:
Where 4 referrers to how many Items it have, itemsize is the Height of each item and titlesize is the height of the Title. It also reset the siblings to the Height of the Title.
Maybe it can Help Someone.
Thanks for your Support!