From a24b9b6b1cc8d73b37dc59d23c44510dc09b8c7f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 23 Sep 2018 19:54:34 -0700 Subject: [PATCH] fixes #238 views: BoxLayout.Draw does unnecessary filling --- views/boxlayout.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/views/boxlayout.go b/views/boxlayout.go index 1fc14ef..d40f0da 100644 --- a/views/boxlayout.go +++ b/views/boxlayout.go @@ -204,13 +204,7 @@ func (b *BoxLayout) Draw() { if b.changed { b.layout() } - b.view.Fill('*', b.style) - w, h := b.view.Size() - for y := 0; y < h; y++ { - for x := 0; x < w; x++ { - b.view.SetContent(x, y, ' ', nil, b.style) - } - } + b.view.Fill(' ', b.style) for i := range b.cells { b.cells[i].widget.Draw() }