mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
fixes #238 views: BoxLayout.Draw does unnecessary filling
This commit is contained in:
parent
86147f14ef
commit
a24b9b6b1c
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user