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

Method SetAutoWidth

gui/hboxlayout.go:79–83  ·  view source on GitHub ↗

SetAutoWidth sets if the panel minimum width should be sum of its children's width plus the spacing

(state bool)

Source from the content-addressed store, hash-verified

77// SetAutoWidth sets if the panel minimum width should be sum of its
78// children's width plus the spacing
79func (bl *HBoxLayout) SetAutoWidth(state bool) {
80
81 bl.minHeight = state
82 bl.Recalc(bl.pan)
83}
84
85// Recalc recalculates and sets the position and sizes of all children
86func (bl *HBoxLayout) Recalc(ipan IPanel) {

Callers 2

BuildLayoutMethod · 0.95
InitializeMethod · 0.45

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected