diff --git a/layouts/flow.go b/layouts/flow.go index c4c8d33..689fcd8 100644 --- a/layouts/flow.go +++ b/layouts/flow.go @@ -38,6 +38,7 @@ func (flow Flow) Arrange (hints tomo.LayoutHints, boxes []tomo.Box) { minorSteps := (flow.deltaMinor(hints.Bounds) + flow.minor(hints.Gap)) / (minorSize + flow.minor(hints.Gap)) + if minorSteps < 1 { minorSteps = 1 } // arrange point := hints.Bounds.Min