From b392c40969e105b00efa262042d647303d6fbc2c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 18:34:09 -0500 Subject: andlabs: now attempt grid placement Signed-off-by: Jeff Carr --- plugin.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugin.go') diff --git a/plugin.go b/plugin.go index 31b47c3..eba3256 100644 --- a/plugin.go +++ b/plugin.go @@ -212,6 +212,9 @@ func newAction(n *Node, atype toolkit.ActionType) *toolkit.Action { a.Name = n.Name a.Text = n.Text a.WidgetId = n.id + if (n.parent != nil) { + a.ParentId = n.parent.id + } a.WidgetType = n.WidgetType return &a @@ -233,7 +236,7 @@ func newaction(a *toolkit.Action, n *Node, where *Node) { if (where != nil) { a.ParentId = where.id if (where.WidgetType == toolkit.Grid) { - placeGrid(a, n, where) + n.gridIncrement() } } -- cgit v1.2.3