Always fill Box background
This resolves rendering issues with TextViews which have their background color set to ColorDefault.merge-requests/1/merge
parent
e877362f62
commit
339db80f66
8
box.go
8
box.go
|
@ -299,11 +299,9 @@ func (b *Box) Draw(screen tcell.Screen) {
|
|||
|
||||
// Fill background.
|
||||
background := def.Background(b.backgroundColor)
|
||||
if b.backgroundColor != tcell.ColorDefault {
|
||||
for y := b.y; y < b.y+b.height; y++ {
|
||||
for x := b.x; x < b.x+b.width; x++ {
|
||||
screen.SetContent(x, y, ' ', nil, background)
|
||||
}
|
||||
for y := b.y; y < b.y+b.height; y++ {
|
||||
for x := b.x; x < b.x+b.width; x++ {
|
||||
screen.SetContent(x, y, ' ', nil, background)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue