summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 18:43:48 -0600
committerJeff Carr <[email protected]>2025-02-08 18:43:48 -0600
commitba629f1892ff99e40f8c3419e3ae1eaf7ed4c71d (patch)
treee7c6a8bbd73fda7f6877616ceef94ec941788a3e /place.go
parentbff0943dc51dde0545b9e1a1515df06c44017d70 (diff)
things resized
Diffstat (limited to 'place.go')
-rw-r--r--place.go4
1 files changed, 2 insertions, 2 deletions
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() {