summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 12:18:11 -0600
committerJeff Carr <[email protected]>2024-01-19 12:18:11 -0600
commitf48b950655f57cb02bbd754ba0043a953956f888 (patch)
tree7547dd1b167536fe9cb4c6f42e6675b5ac0d89d1 /place.go
parentc2a563ae37d11f8374df6c7f00661369f4d5a76f (diff)
things are moving to widget.Statev0.0.9
pass borderless windows correctly destroy themselves from the binary tree checkbox state cleanups Signed-off-by: Jeff Carr <[email protected]>
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 35cffb2..79eb580 100644
--- a/place.go
+++ b/place.go
@@ -78,7 +78,7 @@ func place(p *tree.Node, n *tree.Node) bool {
if n.WidgetType == widget.Textbox {
ptk.uiBox.Append(tk.uiControl, true)
} else {
- ptk.uiBox.Append(tk.uiControl, stretchy)
+ ptk.uiBox.Append(tk.uiControl, n.State.Expand)
}
return true
case widget.Tab:
@@ -104,7 +104,7 @@ func place(p *tree.Node, n *tree.Node) bool {
if n.WidgetType == widget.Textbox {
ptk.uiBox.Append(tk.uiControl, true)
} else {
- ptk.uiBox.Append(tk.uiControl, stretchy)
+ ptk.uiBox.Append(tk.uiControl, n.State.Expand)
}
ptk.boxC += 1
return true