mirror of https://github.com/rivo/tview.git
Pages should clear their background before redrawing. Fixes #89
This commit is contained in:
parent
87ba87feda
commit
74643a2db5
1
pages.go
1
pages.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue