Fixed fragmented/glitchy table drawing

This commit is contained in:
Sasha Koshka 2023-04-03 21:41:39 -04:00
parent ff51777834
commit 13518d9ba6
2 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,7 @@ func (element *TableContainer) DrawBackground (bounds image.Rectangle) {
for _, child := range row { for _, child := range row {
if bounds.Overlaps(child.Rectangle) { if bounds.Overlaps(child.Rectangle) {
child.Draw(canvas.Cut(element.core, bounds), child.Rectangle) child.Draw(canvas.Cut(element.core, bounds), child.Rectangle)
break return
}}} }}}
} }

View File

@ -34,6 +34,7 @@ func run () {
container.Adopt(table, true) container.Adopt(table, true)
window.Adopt(container) window.Adopt(container)
window.OnClose(tomo.Stop) window.OnClose(tomo.Stop)
window.Show() window.Show()
} }