Skip to content

Conversation

@EjPlatzer
Copy link

Currently, the height of the SVG is set based on the length of the first column. This works when the first round of the bracket is completely full. However, if the bracket is sparse (i.e. bye rounds are not shown), then it's possible for the first column to have fewer matches (and therefore be shorter) than later columns.

To fix this, I have updated the calls to calculateSVGDimensions. Before, the numOfRows param was always set to the length of columns[0]. Now, it is set to the maximum length of all columns.

Currently, the height of the SVG is set based on the height of the first column. This works when the first round of the bracket is completely full. However, if the bracket is sparse (i.e. bye rounds are not shown), then it's possible for the first column to have fewer matches (and therefore be shorter) than later columns.

To fix this, I have updated the calls to `calculateSVGDimensions`. Before, the numOfRows param was always set to the length of columns[0]. Now, it is set to the maximum length of all columns.
@EjPlatzer EjPlatzer force-pushed the fix/svg-height-max-of-columns branch from 292937a to ecd6bc4 Compare July 12, 2024 17:50
@Shenato
Copy link
Contributor

Shenato commented Jan 14, 2025

If you could, please re-open this Pull request in the project's new repository since this repository has no maintainers with access to it anymore more details here #78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants