Skip to content

Commit

Permalink
fix: set width
Browse files Browse the repository at this point in the history
Minor adjustment to trigger a release

#2330
  • Loading branch information
cutterbl committed Jan 5, 2023
1 parent a6258c1 commit e825de7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/layout-algorithms/overlap.js
Original file line number Diff line number Diff line change
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 e825de7

Please sign in to comment.