From 955c823681ecc8126faec0260c781f299306ee77 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Nov 2021 02:13:58 -0500 Subject: [PATCH] GOOD: allow setting 'Stretchy' as a global config Signed-off-by: Jeff Carr --- window-debug-golang.go | 1 + window-resolv.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/window-debug-golang.go b/window-debug-golang.go index cc5509f..da8dc07 100644 --- a/window-debug-golang.go +++ b/window-debug-golang.go @@ -11,6 +11,7 @@ import ( import "git.wit.org/wit/gui" func golangDebug(w *gui.Node) { + gui.Config.Stretchy = false if (w == nil) { gui.Config.Title = "golangDebug Window" gui.Config.Width = 100 diff --git a/window-resolv.go b/window-resolv.go index 3d10867..e32708e 100644 --- a/window-resolv.go +++ b/window-resolv.go @@ -72,13 +72,17 @@ func resolvWindow(w *gui.Node) { bash("ping -c 3 2001:4860:4860::6464") }) + gui.Config.Stretchy = true gNode.AddButton("set output", func (*gui.Node) { if (generaloutput != nil) { generaloutput.SetText("wow") generaloutput.SetMargined(false) } }) + gui.Config.Stretchy = false + gui.Config.Stretchy = true gNode = tab.AddGroup("Update") generaloutput = gNode.MakeGroupEdit("output") + gui.Config.Stretchy = false }