From c8610ea4164403c418c3fc13aee13685aeff447f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 11 Feb 2026 17:42:51 -0500 Subject: add border layout --- layout/rows.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'layout/rows.go') diff --git a/layout/rows.go b/layout/rows.go index 603eddc..cfb85c9 100644 --- a/layout/rows.go +++ b/layout/rows.go @@ -39,7 +39,7 @@ func NewRows(env gui.Env, nrows uint) []gui.Env { event := (<-env.Events()).(gui.Resize) // first event guaranteed to be Resize area := event.Rectangle rowHeights := make([]uint, nrows) // initially zero until draw call received - resize(area, rowHeights) // send first Resize to children + go resize(area, rowHeights) // send first Resize to children // Multiplex rows' draw channels. Tag draw functions with row index. draws := make(chan taggedDrawCall) @@ -56,9 +56,9 @@ func NewRows(env gui.Env, nrows uint) []gui.Env { switch event := event.(type) { case gui.Resize: area = event.Rectangle - resize(area, rowHeights) + go resize(area, rowHeights) default: - multicast(event, eventss) // forward event to all rows + go multicast(event, eventss) // forward event to all rows } case drw := <-draws: // draw call from a row rh := rowHeight(area, drw.f) -- cgit v1.2.3