From a3bb4098fbecb656e1758fa4ede102b797d517aa Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Thu, 12 Sep 2024 18:11:08 -0400 Subject: [PATCH] Pegboard defaults to FlowVertical layout --- pegboard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pegboard.go b/pegboard.go index 1643df8..1812c0f 100644 --- a/pegboard.go +++ b/pegboard.go @@ -12,9 +12,9 @@ type Pegboard struct { } // NewPegboard creates a new pegboard. If the provided layout is nil, it will -// use a FlowHorizontal layout. +// use a FlowVertical layout. func NewPegboard (layout tomo.Layout, children ...tomo.Object) *Pegboard { - if layout == nil { layout = layouts.FlowHorizontal } + if layout == nil { layout = layouts.FlowVertical } pegboard := &Pegboard { } pegboard.init(layout, children...) pegboard.box.SetRole(tomo.R("objects", "Pegboard"))