A layout that is affected by changes to scroll position.

Available since

1.0.0

.

Variables

read onlyelasticBottom:Bool

Indicates if the bottom edge is elastic.

Available since

1.0.0

.

read onlyelasticLeft:Bool

Indicates if the left edge is elastic.

Available since

1.0.0

.

read onlyelasticRight:Bool

Indicates if the right edge is elastic.

Available since

1.0.0

.

read onlyelasticTop:Bool

Indicates if the top edge is elastic.

Available since

1.0.0

.

scrollX:Float

The horizontal scroll position of the container using this layout.

Available since

1.0.0

.

scrollY:Float

The vertical scroll position of the container using this layout.

Available since

1.0.0

.

Methods

getNearestScrollPositionForIndex(index:Int, itemCount:Int, width:Float, height:Float, ?result:Point):Point

Returns the scroll position nearest to the current scroll position to completely display the item's bounds within the view port's bounds. If the item is already completely displayed, this method returns the current scroll position unmodified.

Available since

1.0.0

.