Pages should clear their background before redrawing. Fixes #89

This commit is contained in:
Oliver 2018-03-29 18:28:32 +02:00
parent 87ba87feda
commit 74643a2db5
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ func (p *Pages) Focus(delegate func(p Primitive)) {
// Draw draws this primitive onto the screen. // Draw draws this primitive onto the screen.
func (p *Pages) Draw(screen tcell.Screen) { func (p *Pages) Draw(screen tcell.Screen) {
p.Box.Draw(screen)
for _, page := range p.pages { for _, page := range p.pages {
if !page.Visible { if !page.Visible {
continue continue