From c06f10c1935b0131e15ecdd8bbc7a94ce0f32683 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Sat, 15 Jun 2024 18:12:08 -0400 Subject: [PATCH] Fix flow layout getting stuck in a loop --- layouts/flow.go | 1 + 1 file changed, 1 insertion(+) 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