apache-flexflex3tilelist

Flex 3 tilelist not scolling with 'bottom' property set


Pretty basic issue but it seems strange it wouldn't work. My tile list scrolls vertically. If I set an explicit height everything works fine. If I set the height to a percentage or I set the bottom property, the tile list wont shrink smaller than the height of the renderers times the number of rows that are displayed.

The solution I came up with is to listen for the resize event of the parent and set the height explicitly of the tile list every time. It works but I'm curious if this is normal or if something else is going on here. Thanks


Solution

  • the tile list wont shrink smaller than the height of the renderers times the number of rows that are displayed.

    This is probably expected. Since you have not shown any code, I will guess that you are setting height to 100% or bottom="0". Even if you specify something slightly smaller, like 90% or bottom="10", its going to make the list be big enough to fill the specified space.

    If you want scrollbars you can always force them by specifying a maxHeight.