2
0
mirror of https://github.com/rivo/tview.git synced 2024-11-15 06:12:46 +00:00

center draw redraws background first

This commit is contained in:
Gergely Bódi 2023-02-02 14:03:32 +01:00
parent dee47f684d
commit ddf204f6bd

View File

@ -62,6 +62,7 @@ func (c *Center) Draw(screen tcell.Screen) {
height = inHeight
}
c.Box.Draw(screen)
c.primitive.SetRect(x, y, width, height)
c.primitive.Draw(screen)
}