From 74643a2db581c4268b25079d7a3f7a9ed441d0e2 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Thu, 29 Mar 2018 18:28:32 +0200 Subject: [PATCH] Pages should clear their background before redrawing. Fixes #89 --- pages.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pages.go b/pages.go index 6d0f0f5..9af7fe9 100644 --- a/pages.go +++ b/pages.go @@ -234,6 +234,7 @@ func (p *Pages) Focus(delegate func(p Primitive)) { // Draw draws this primitive onto the screen. func (p *Pages) Draw(screen tcell.Screen) { + p.Box.Draw(screen) for _, page := range p.pages { if !page.Visible { continue