diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-03 13:16:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-07 11:31:53 +0200 |
commit | f90e96d31488ca5aa95f991e2784266fc30b1a29 (patch) | |
tree | f75666c0ff6b7f07ef6f3e80803c069ed19178a8 /ui/confview.go | |
parent | ui: cache last observed state (diff) | |
download | wireguard-windows-f90e96d31488ca5aa95f991e2784266fc30b1a29.tar.xz wireguard-windows-f90e96d31488ca5aa95f991e2784266fc30b1a29.zip |
ui: confview: add more super horrible wm_sizing hacks
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | ui/confview.go | 4 |
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 { |