Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scroll to selected item in Flex 4 Spark List component

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item ? Thanks !

like image 474
Rodion Bykov Avatar asked Oct 21 '09 16:10

Rodion Bykov


1 Answers

Try the s:List method ensureIndexIsVisible(index:int):void.

like image 122
an0nym0usc0ward Avatar answered Sep 30 '22 10:09

an0nym0usc0ward