From e19a728d7fe0059b87e7af84c7155fd6559ced6d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 08:25:10 -0500 Subject: andlabs grid placement still broken Signed-off-by: Jeff Carr --- label.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'label.go') diff --git a/label.go b/label.go index a7548e4..b3833e9 100644 --- a/label.go +++ b/label.go @@ -7,11 +7,10 @@ import ( func (n *Node) NewLabel(text string) *Node { newNode := n.newNode(text, toolkit.Label, nil) - var a toolkit.Action - a.ActionType = toolkit.Add - a.Name = text - a.Text = text - newaction(&a, newNode, n) + n.Name = text + n.Text = text + a := newAction(n, toolkit.Add) + sendAction(a, newNode, n) return newNode } -- cgit v1.2.3