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

Method SetAutoHeight

gui/hboxlayout.go:71–75  ·  view source on GitHub ↗

SetAutoHeight sets if the panel minimum height should be the height of the largest of its children's height.

(state bool)

Source from the content-addressed store, hash-verified

69// SetAutoHeight sets if the panel minimum height should be the height of
70// the largest of its children's height.
71func (bl *HBoxLayout) SetAutoHeight(state bool) {
72
73 bl.autoHeight = state
74 bl.Recalc(bl.pan)
75}
76
77// SetAutoWidth sets if the panel minimum width should be sum of its
78// children's width plus the spacing

Callers 2

BuildLayoutMethod · 0.95
InitializeMethod · 0.45

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected