Skip to content

Commit c3f25eb

Browse files
authored
fix: Correct no overlap algorithm stretch behavior (jquense#2120)
1 parent 6d00f12 commit c3f25eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/layout-algorithms/no-overlap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default function({
9090
// stretch to maximum
9191
let maxIdx = 0
9292
for (let j = 0; j < e.friends.length; ++j) {
93-
const idx = e.friends[j]
93+
const idx = e.friends[j].idx
9494
maxIdx = maxIdx > idx ? maxIdx : idx
9595
}
9696
if (maxIdx <= e.idx) e.size = 100 - e.idx * e.size

0 commit comments

Comments
 (0)