aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-03 13:16:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-07 11:31:53 +0200
commit6621afe4029d405c3040342964ee9aa356064e68 (patch)
treef75666c0ff6b7f07ef6f3e80803c069ed19178a8 /ui
parentui: cache last observed state (diff)
downloadwireguard-windows-6621afe4029d405c3040342964ee9aa356064e68.tar.xz
wireguard-windows-6621afe4029d405c3040342964ee9aa356064e68.zip
ui: confview: add more super horrible wm_sizing hacks
Diffstat (limited to 'ui')
-rw-r--r--ui/confview.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/confview.go b/ui/confview.go
index b8381fa1..a44da527 100644
--- a/ui/confview.go
+++ b/ui/confview.go
@@ -138,12 +138,16 @@ func (lt *labelTextLine) show(text string) {
lt.label.SetVisible(true)
lt.text.SetVisible(true)
lt.text.SetTextSelection(s, e)
+
+ lt.label.Parent().SendMessage(win.WM_SIZING, 0, 0) //TODO: This here is a filthy hack that shouldn't be required!
}
func (lt *labelTextLine) hide() {
lt.text.SetText("")
lt.label.SetVisible(false)
lt.text.SetVisible(false)
+
+ lt.label.Parent().SendMessage(win.WM_SIZING, 0, 0) //TODO: This here is a filthy hack that shouldn't be required!
}
func newLabelTextLine(fieldName string, parent walk.Container) *labelTextLine {