The ViewPortBounds
object passed to layout()
includes scrollX
and scrollY
properties.
The selectedIndex
is not passed in, so you'll either need to pass it in yourself, or figure it out based on the items that are passed in. I'll give you a hint: item.parent.parent as List
should work, if item
is not null.