From 5a838262bdc72e51351d0d81efcd9b2825e5e525 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 28 Oct 2021 19:47:49 -0500 Subject: BOX: start node.button() funcs in the rabbit hole Signed-off-by: Jeff Carr --- find.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'find.go') diff --git a/find.go b/find.go index 9f849e7..e046161 100644 --- a/find.go +++ b/find.go @@ -18,6 +18,13 @@ func (n *Node) FindControl() *ui.Control { } func (n *Node) FindBox() *GuiBox { + if (n.box != nil) { + return n.box + } + if (n.parent != nil) { + p := n.parent + return p.box + } return n.box } -- cgit v1.2.3