diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-02-10 17:20:34 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-02-10 17:20:34 -0500 |
| commit | ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f (patch) | |
| tree | 625376cfc4b0ee82a02e340a2fe813882b6047c4 /layout/rows.go | |
| parent | 430f97bed9d758de90a72b0c06b2be1989ba2b1d (diff) | |
| download | gui-ebc5d96f0614ab3b4f2073eadf22fbe554b0ec8f.zip | |
remove layout options
Diffstat (limited to 'layout/rows.go')
| -rw-r--r-- | layout/rows.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/layout/rows.go b/layout/rows.go index 3912878..603eddc 100644 --- a/layout/rows.go +++ b/layout/rows.go @@ -10,9 +10,7 @@ import ( // NewRows creates layout with nrows children arranged in rows. // It returns a slice containing an Env for each row. // The height of each row is determined by the draw calls received from that row. -func NewRows(env gui.Env, nrows uint, o ...Option) []gui.Env { - opts := evalOptions(o...) - +func NewRows(env gui.Env, nrows uint) []gui.Env { // Create event and draw channels for each row eventss := make([]chan gui.Event, nrows) // to children drawss := make([]chan func(draw.Image) image.Rectangle, nrows) // from children @@ -27,10 +25,6 @@ func NewRows(env gui.Env, nrows uint, o ...Option) []gui.Env { defer closeAll(eventss) resize := func(area image.Rectangle, rowHeights []uint) { - // Redraw background - env.Draw() <- drawSubImage(drawBackground(opts.bg), area) - - // Send resize events to rows off := area.Min // vertical offset from parent area origin var i uint for i = 0; i < nrows; i++ { |