From ba629f1892ff99e40f8c3419e3ae1eaf7ed4c71d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Feb 2025 18:43:48 -0600 Subject: things resized --- place.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'place.go') diff --git a/place.go b/place.go index 7d74169..0eb0074 100644 --- a/place.go +++ b/place.go @@ -314,8 +314,8 @@ func textSize(n *tree.Node) (int, int) { */ func (tk *guiWidget) gocuiSetWH(sizeW, sizeH int) { - w := len(widget.GetString(tk.value)) - lines := strings.Split(widget.GetString(tk.value), "\n") + w := len(tk.node.GetLabel()) + lines := strings.Split(tk.node.GetLabel(), "\n") h := len(lines) if tk.Hidden() { -- cgit v1.2.3