From 86b26cd8a20ec11e953999650c10d59f4170f1ce Mon Sep 17 00:00:00 2001 From: Steve 'Cutter' Blades Date: Thu, 5 Jan 2023 08:51:31 -0500 Subject: [PATCH] fix: set width (#2332) --- src/utils/layout-algorithms/overlap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) }