Skip to content

Commit

Permalink
handle window resize in help dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
bcicen committed Feb 2, 2018
1 parent 44a54e0 commit 1c7cf98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 1c7cf98

Please sign in to comment.