Merge pull request #88 from heavenlyhash/patch-1

Clear screen during re-layouts in example
This commit is contained in:
Zack Guo 2016-10-25 17:22:53 -04:00 committed by GitHub
commit d29684eba4
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ func main() {
ui.Handle("/sys/wnd/resize", func(e ui.Event) {
ui.Body.Width = ui.TermWidth()
ui.Body.Align()
ui.Clear()
ui.Render(ui.Body)
})