diff --git a/src/utils/layout-algorithms/overlap.js b/src/utils/layout-algorithms/overlap.js index 1d52f6f1b..90d71b82d 100644 --- a/src/utils/layout-algorithms/overlap.js +++ b/src/utils/layout-algorithms/overlap.js @@ -30,11 +30,10 @@ class Event { return 100 / columns } - const availableWidth = 100 - this.container._width - // The row event's width is the space left by the container, divided // among itself and its leaves. if (this.leaves) { + const availableWidth = 100 - this.container._width return availableWidth / (this.leaves.length + 1) }