Skip to content

Commit

Permalink
Merge pull request #469 from softwaremagico/467-tournament-brackets-i…
Browse files Browse the repository at this point in the history
…n-some-cases-the-brackets-does-not-fit-on-the-screen

467 tournament brackets in some cases the brackets does not fit on the screen
  • Loading branch information
softwaremagico committed Jun 14, 2024
2 parents 3e7279b + 25aebdf commit b097a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public Group addGroup(Tournament tournament, Group group) {
public void recreateGroupSize(Tournament tournament, int numberOfWinners) {
groupProvider.delete(tournament, 1);
adjustGroupsSize(tournament, numberOfWinners);
//Update the shiaijo numbers.
adjustGroupsShiaijos(tournament);
}

public void adjustGroupsSize(Tournament tournament, int numberOfWinners) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ArrowComponent implements OnInit {
this.y2 += ArrowComponent.WINNER_SEPARATION;
}
}
if (this.level > 0) {
if (this.level > 0 || this.numberOfWinnersFirstLevel == 1) {
if (this.y1 < this.y2) {
this.y2 -= ArrowComponent.WINNER_SEPARATION;
} else {
Expand Down

0 comments on commit b097a5e

Please sign in to comment.