public class VBoxLayout extends Layout:
Vertical layout.
Widgets are stacked from top to bottom. Extra vertical space is distributed according to LayoutParams.growY; when no explicit layout parameter is set, SizePolicy.EXPANDING contributes a default grow weight.
layout = VBoxLayout(spacing=10)
page = Container(layout)
layout.add(Label("Name"))
field = TextBox()
field.layoutParams = LayoutParams(0, 1)
layout.add(field)
preview = PreviewCanvas()
layout.add(preview)| Modifier and Type | Member | Description |
|---|---|---|
| public property | alignalign as String = "fill" |
No summary. |
| public property | spacingspacing as Int = 8 |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | VBoxLayoutVBoxLayout(spacing as Int = 8, align as String = "fill"): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | layoutlayout(container as Container) as Void: |
No summary. |