summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
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
}
}