Skip to content

Commit 86b26cd

Browse files
authored
fix: set width (jquense#2332)
1 parent a6258c1 commit 86b26cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/layout-algorithms/overlap.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ class Event {
3030
return 100 / columns
3131
}
3232

33-
const availableWidth = 100 - this.container._width
34-
3533
// The row event's width is the space left by the container, divided
3634
// among itself and its leaves.
3735
if (this.leaves) {
36+
const availableWidth = 100 - this.container._width
3837
return availableWidth / (this.leaves.length + 1)
3938
}
4039

0 commit comments

Comments
 (0)