Skip to content

Commit

Permalink
fix: set width (jquense#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
cutterbl committed Jan 5, 2023
1 parent a6258c1 commit 86b26cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/layout-algorithms/overlap.js
Expand Up @@ -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)
}

Expand Down

0 comments on commit 86b26cd

Please sign in to comment.