SetAutoWidth sets if the panel minimum width should be sum of its children's width plus the spacing
(state bool)
| 77 | // SetAutoWidth sets if the panel minimum width should be sum of its |
| 78 | // children's width plus the spacing |
| 79 | func (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 |
| 86 | func (bl *VBoxLayout) Recalc(ipan IPanel) { |