Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex 4 Spark List setting scroll position

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

Thank you!

like image 760
Francisc Avatar asked Apr 09 '26 06:04

Francisc


1 Answers

Found a solution:

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

e.g.

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

AS3
listLayout.verticalScrollPosition=30;

like image 90
Francisc Avatar answered Apr 12 '26 03:04

Francisc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!