summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
Diffstat (limited to 'place.go')
-rw-r--r--place.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/place.go b/place.go
index 0caf227..bd602f7 100644
--- a/place.go
+++ b/place.go
@@ -122,14 +122,14 @@ func (w *guiWidget) placeGrid(startW int, startH int) (int, int) {
childW, childH := child.placeWidgets(child.startW, child.startH)
// set the child's realWidth, and grid offset
- if w.widths[child.AtW] < childW {
- w.widths[child.AtW] = childW
+ if w.widths[child.node.State.AtW] < childW {
+ w.widths[child.node.State.AtW] = childW
}
- if w.heights[child.AtH] < childH {
- w.heights[child.AtH] = childH
+ if w.heights[child.node.State.AtH] < childH {
+ w.heights[child.node.State.AtH] = childH
}
// child.showWidgetPlacement("grid: ")
- log.Log(INFO, "placeGrid:", child.String(), "child()", childW, childH, "At()", child.AtW, child.AtH)
+ log.Log(INFO, "placeGrid:", child.String(), "child()", childW, childH, "At()", child.node.State.AtW, child.node.State.AtH)
}
var maxW int = 0
@@ -141,12 +141,12 @@ func (w *guiWidget) placeGrid(startW int, startH int) (int, int) {
var totalW, totalH int
for i, w := range w.widths {
- if i < child.AtW {
+ if i < child.node.State.AtW {
totalW += w
}
}
for i, h := range w.heights {
- if i < child.AtH {
+ if i < child.node.State.AtH {
totalH += h
}
}
@@ -162,7 +162,7 @@ func (w *guiWidget) placeGrid(startW int, startH int) (int, int) {
maxH = totalH
}
- log.Log(INFO, "placeGrid:", child.String(), "new()", newW, newH, "At()", child.AtW, child.AtH)
+ log.Log(INFO, "placeGrid:", child.String(), "new()", newW, newH, "At()", child.node.State.AtW, child.node.State.AtH)
child.placeWidgets(newW, newH)
child.showWidgetPlacement("grid2:")
}