align ctop header on resize, add keybinding to help dialog

This commit is contained in:
Bradley Cicenas
2017-02-20 10:52:59 +11:00
parent 335ac8d741
commit 93db38d654
3 changed files with 10 additions and 3 deletions
+1
View File
@@ -206,6 +206,7 @@ func Display(g *Grid) bool {
})
ui.Handle("/sys/wnd/resize", func(e ui.Event) {
g.header.Align()
ui.Body.Width = ui.TermWidth()
log.Infof("resize: width=%v max-rows=%v", ui.Body.Width, g.maxRows)
g.redrawRows()