summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-19 04:22:26 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commita5800917e8383929e5c9dc8ad0265d6a4b4357bf (patch)
tree3805524ee25d083ce742007e26e31cb08b449628 /size.go
parentc64592f326aa4a76d9c773e2d4f8b775fac86b02 (diff)
still more
Diffstat (limited to 'size.go')
-rw-r--r--size.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/size.go b/size.go
index 94248ff..0d86128 100644
--- a/size.go
+++ b/size.go
@@ -91,11 +91,11 @@ func (w *guiWidget) sizeGrid() (int, int) {
sizeW, sizeH := child.Size()
// set the child's realWidth, and grid offset
- if w.widths[child.node.State.AtW] < sizeW {
- w.widths[child.node.State.AtW] = sizeW
+ if w.widths[child.GridW()] < sizeW {
+ w.widths[child.GridW()] = sizeW
}
- if w.heights[child.node.State.AtH] < sizeH {
- w.heights[child.node.State.AtH] = sizeH
+ if w.heights[child.GridH()] < sizeH {
+ w.heights[child.GridH()] = sizeH
}
}