Fixed fragmented/glitchy table drawing
This commit is contained in:
parent
ff51777834
commit
13518d9ba6
@ -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
|
||||||
}}}
|
}}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user