A simple list layout that positions items from top to bottom, in a single column, where every item fills the entire width of the container.

Available since

1.0.0

.

Constructor

new (?target:IEventDispatcher)

Variables

@:value(5)requestedRowCount:Null<Int> = 5

The number of rows to render, if the height of the container has not been set explicitly. If null, shows all rows.

@:value(null)rowHeight:Null<Float> = null

The height to set on each item, or null, if the row height should be calculated automatically.

@:value(0.0)scrollX:Float = 0.0

@:value(0.0)scrollY:Float = 0.0

Methods

layout (items:Array<DisplayObject>, measurements:Measurements, ?result:LayoutBoundsResult):LayoutBoundsResult