Class VerticalLayout
Lays out components vertically.
Usage:
-- Create a vertical layout manager with padding of 2.
local layout = VerticalLayout(2)
Fields
-
VerticalLayout.hAlignment
-
Horizontal alignment of contained components.
Default center.
-
VerticalLayout.padding
-
Padding between contained components.
-
VerticalLayout.vAlignment
-
Vertical alignment of contained components.
Default top.
Constructor
-
VerticalLayout:_init ([padding=0[, vAlign=Align.TOP[, hAlign=Align.CENTER]]])
-
Constructs a VerticalLayout.
Parameters:
- padding
The padding between components within this layout.
(default 0)
- vAlign
The vertical alignment of the components.
(default Align.TOP)
- hAlign
The horizontal alignment of the components.
(default Align.CENTER)