Flex 4 scroll list scroll position

How can I set the scroll position for a Spark List control?

Thank!

+3
source share
1 answer

Found a solution:

You set either horizontalScrollPosition or verticalScrollPosition for the layout of the List control, not the List element itself.

eg.

MXML
<s:TileLayout id="listLayout" verticalScrollPosition="30"/>

AS3
listLayout.verticalScrollPosition=30;

+9
source

Source: https://habr.com/ru/post/1758705/


All Articles