Fix flow layout getting stuck in a loop
This commit is contained in:
parent
23fb28ce5c
commit
c06f10c193
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user