MCPcopy Index your code
hub / github.com/g3n/engine / SetAutoWidth

Method SetAutoWidth

gui/vboxlayout.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 *VBoxLayout) SetAutoWidth(state bool) {
80
81 bl.autoWidth = state
82 bl.Recalc(bl.pan)
83}
84
85// Recalc recalculates and sets the position and sizes of all children
86func (bl *VBoxLayout) Recalc(ipan IPanel) {

Callers 1

BuildLayoutMethod · 0.95

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected