summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
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() {