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 ()

Creates a new VerticalListFixedRowLayout object.

Available since

1.0.0

.

Variables

@:value(5.0)requestedRowCount:Null<Float> = 5.0

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

In the following example, the layout's requested row count is set to 2 items:

layout.requestedRowCount = 2.0;
Available since

1.0.0

.

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

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

In the following example, the layout's row height is set to 20 pixels:

layout.rowHeight = 20.0;
Available since

1.0.0

.

Methods

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