From 1c7cf98e586a5b4253589620e48ecddc3dbd5d3a Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Fri, 2 Feb 2018 15:21:33 +0000 Subject: [PATCH] handle window resize in help dialog --- menus.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/menus.go b/menus.go index feceea2..6b13a4a 100644 --- a/menus.go +++ b/menus.go @@ -37,7 +37,10 @@ func HelpMenu() MenuFn { m := menu.NewMenu() m.BorderLabel = "Help" m.AddItems(helpDialog...) - ui.Render(m) + ui.Handle("/sys/wnd/resize", func(e ui.Event) { + ui.Clear() + ui.Render(m) + }) ui.Handle("/sys/kbd/", func(ui.Event) { ui.StopLoop() })