MCPcopy
hub / github.com/g3n/engine / SetAlignV

Method SetAlignV

gui/vboxlayout.go:63–67  ·  view source on GitHub ↗

SetAlignV sets the vertical alignment of the whole group of items inside the parent panel and updates the layout if possible. This only has any effect if there are no expanded items.

(align Align)

Source from the content-addressed store, hash-verified

61// inside the parent panel and updates the layout if possible.
62// This only has any effect if there are no expanded items.
63func (bl *VBoxLayout) SetAlignV(align Align) {
64
65 bl.alignV = align
66 bl.Recalc(bl.pan)
67}
68
69// SetAutoHeight sets if the panel minimum height should be the height of
70// the largest of its children's height.

Callers 1

BuildLayoutMethod · 0.95

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected