summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'node.go')
-rw-r--r--node.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/node.go b/node.go
index f9b35a9..93d0ca8 100644
--- a/node.go
+++ b/node.go
@@ -12,6 +12,12 @@ func (n *Node) newNode(title string, t toolkit.WidgetType, custom func()) *Node
newN.WidgetType = t
newN.Custom = custom
+ if n.WidgetType == toolkit.Grid {
+ n.gridIncrement()
+ }
+ newN.AtW = n.NextW
+ newN.AtH = n.NextH
+
n.children = append(n.children, newN)
newN.parent = n
return newN