closer to accurate grid sizes

This commit is contained in:
Jeff Carr 2025-02-06 19:58:48 -06:00
parent 176831d0f3
commit e39bcafb78
2 changed files with 3 additions and 2 deletions

View File

@ -71,6 +71,9 @@ func (tk *guiWidget) placeWidgets(startW int, startH int) (int, int) {
if me.treeRoot == nil {
return 0, 0
}
if tk.Hidden() {
return 0, 0
}
tk.startW = startW
tk.startH = startH

View File

@ -98,8 +98,6 @@ func (w *guiWidget) sizeGrid() (int, int) {
}
sizeW, sizeH := child.Size()
sizeW += 2
// set the child's realWidth, and grid offset
if w.widths[child.node.State.AtW] < sizeW {
w.widths[child.node.State.AtW] = sizeW