diff --git a/elements/containers/table.go b/elements/containers/table.go index d80c28c..c886c40 100644 --- a/elements/containers/table.go +++ b/elements/containers/table.go @@ -217,7 +217,7 @@ func (element *TableContainer) DrawBackground (bounds image.Rectangle) { for _, child := range row { if bounds.Overlaps(child.Rectangle) { child.Draw(canvas.Cut(element.core, bounds), child.Rectangle) - break + return }}} } diff --git a/examples/table/main.go b/examples/table/main.go index dd2fd6e..796f10e 100644 --- a/examples/table/main.go +++ b/examples/table/main.go @@ -34,6 +34,7 @@ func run () { container.Adopt(table, true) window.Adopt(container) + window.OnClose(tomo.Stop) window.Show() }