From b5b2054c60c014d55a8d580469308e6cfa721459 Mon Sep 17 00:00:00 2001 From: matmello Date: Fri, 4 Feb 2022 15:02:33 -0300 Subject: [PATCH] Fixing no overlap algorithm stretch behavior --- src/utils/layout-algorithms/no-overlap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/layout-algorithms/no-overlap.js b/src/utils/layout-algorithms/no-overlap.js index 94bc4f3bc..ffdedd83f 100644 --- a/src/utils/layout-algorithms/no-overlap.js +++ b/src/utils/layout-algorithms/no-overlap.js @@ -90,7 +90,7 @@ export default function({ // stretch to maximum let maxIdx = 0 for (let j = 0; j < e.friends.length; ++j) { - const idx = e.friends[j] + const idx = e.friends[j].idx maxIdx = maxIdx > idx ? maxIdx : idx } if (maxIdx <= e.idx) e.size = 100 - e.idx * e.size