summaryrefslogtreecommitdiff
path: root/place.go
diff options
context:
space:
mode:
Diffstat (limited to 'place.go')
-rw-r--r--place.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/place.go b/place.go
index f6db8d6..35cffb2 100644
--- a/place.go
+++ b/place.go
@@ -75,7 +75,11 @@ func place(p *tree.Node, n *tree.Node) bool {
ptk.uiBox = rawBox(n)
ptk.uiGroup.SetChild(ptk.uiBox)
}
- ptk.uiBox.Append(tk.uiControl, stretchy)
+ if n.WidgetType == widget.Textbox {
+ ptk.uiBox.Append(tk.uiControl, true)
+ } else {
+ ptk.uiBox.Append(tk.uiControl, stretchy)
+ }
return true
case widget.Tab:
if ptk.uiTab == nil {
@@ -97,7 +101,11 @@ func place(p *tree.Node, n *tree.Node) bool {
log.Warn("SPEEDY Add Something to Box", n.WidgetId, n.GetProgName())
log.Log(INFO, "place() uiBox =", ptk.uiBox)
log.Log(INFO, "place() uiControl =", tk.uiControl)
- ptk.uiBox.Append(tk.uiControl, stretchy)
+ if n.WidgetType == widget.Textbox {
+ ptk.uiBox.Append(tk.uiControl, true)
+ } else {
+ ptk.uiBox.Append(tk.uiControl, stretchy)
+ }
ptk.boxC += 1
return true
case widget.Window: