I have a list with height set to auto but I can't get <centertop> to work with it.
I need the list to be centered vertically regardless of how many items it contains. I'm currently doing it with a number of animations to slide it a set amount depending on the number of items. But I thought auto height and <centertop> would make it much easier, however it doesn't seem to work. Any ideas?
Code:
<!-- Main Menu list -->
<control type="list" id="9005">
<left>8</left>
<centertop>50%</centertop>
<width>480</width>
<height min="96" max="1080">auto</height>
....
....
....
</control>
I need the list to be centered vertically regardless of how many items it contains. I'm currently doing it with a number of animations to slide it a set amount depending on the number of items. But I thought auto height and <centertop> would make it much easier, however it doesn't seem to work. Any ideas?