From 6621afe4029d405c3040342964ee9aa356064e68 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 3 Jun 2019 13:16:18 +0200 Subject: ui: confview: add more super horrible wm_sizing hacks --- ui/confview.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/confview.go') 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 { -- cgit v1.2.3-59-g8ed1b