add resize handling to log view

This commit is contained in:
Bradley Cicenas
2017-11-28 08:55:29 -05:00
parent 28389aa38c
commit 53c0f2a9df
2 changed files with 17 additions and 9 deletions
+4
View File
@@ -160,6 +160,10 @@ func LogMenu() {
m.BorderLabel = "Logs"
ui.Render(m)
ui.Handle("/sys/wnd/resize", func(e ui.Event) {
m.Resize()
ui.Render(m)
})
ui.Handle("/sys/kbd/", func(ui.Event) {
quit <- true
ui.StopLoop()