Skip to content

Commit

Permalink
fix: Correct no overlap algorithm stretch behavior (jquense#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
matmello authored Feb 10, 2022
1 parent 6d00f12 commit c3f25eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/layout-algorithms/no-overlap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3f25eb

Please sign in to comment.