class VerticalListLayout
package feathers.layout
extends EventDispatcher
implements IVirtualLayout
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.
If all items in the container should have the same height, consider using
VerticalListFixedRowLayout
instead. When a fixed height for items is
known, that layout offers better performance optimization.
1.0.0
.Constructor
Variables
gap:Float
The space, in pixels, between each two adjacent items in the layout.
In the following example, the layout's gap is set to 20 pixels:
layout.gap = 20.0;
1.0.0
.paddingBottom:Float
The space, in pixels, between the parent container's bottom edge and its content.
In the following example, the layout's bottom padding is set to 20 pixels:
layout.paddingBottom = 20.0;
1.0.0
.paddingLeft:Float
The space, in pixels, between the parent container's left edge and its content.
In the following example, the layout's left padding is set to 20 pixels:
layout.paddingLeft = 20.0;
1.0.0
.paddingRight:Float
The space, in pixels, between the parent container's right edge and its content.
In the following example, the layout's right padding is set to 20 pixels:
layout.paddingRight = 20.0;
1.0.0
.paddingTop:Float
The space, in pixels, between the parent container's top edge and its content.
In the following example, the layout's top padding is set to 20 pixels:
layout.paddingTop = 20.0;
1.0.0
.requestedRowCount:Null<Float>
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 complete items:
layout.requestedRowCount = 2.0;
1.0.0
.verticalAlign:VerticalAlign
How the content is positioned vertically (along the y-axis) within the container.
Note: The VerticalAlign.JUSTIFY
constant is not supported by this
layout.
The following example aligns the container's content to the bottom:
layout.verticalAlign = BOTTOM;
1.0.0
.See also:
Methods
getNearestScrollPositionForIndex(index:Int, itemCount:Int, width:Float, height:Float, ?result:Point):Point
getVisibleIndices(itemCount:Int, width:Float, height:Float, ?result:VirtualLayoutRange):VirtualLayoutRange
layout(items:Array<DisplayObject>, measurements:Measurements, ?result:LayoutBoundsResult):LayoutBoundsResult
See also: