views:

474

answers:

2

Is there a way to have the TileList component to auto-size to its contents? I have tried setting it 100%, but it seems that won't help. I don't want to hard-code the height because the content will be vary, and I don't want scrollbars to show up. Please help.

A: 

Try creating an event handler when the tilelist changes, calculate the height based on the children then resize the child list based on that value.

Chris Klepeis
+1  A: 

This is how I ended up solving this issue: First I set the values for rowHeight and maxColumn properties. Then I did a little function that fires on the updateComplete event of the TileList to calculate the height of the tileList by doing a rowHeight * number of rows. That worked.

Q-rius