Skip to content

Commit

Permalink
fix(view/status): align team stats to the sides
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Sep 21, 2023
1 parent 3908864 commit 0c1a9d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/sc/gui/view/StatusView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sc.gui.view

import javafx.beans.binding.StringBinding
import javafx.geometry.Pos
import javafx.scene.layout.Priority
import javafx.scene.text.TextAlignment
import sc.api.plugins.ITeam
import sc.api.plugins.Team
Expand Down Expand Up @@ -66,7 +67,7 @@ class StatusView: View() {
useMaxWidth = true
alignment = Pos.CENTER
label(playerLabel(Team.ONE))
region { useMaxWidth = true } // TODO
region { useMaxWidth = true; hgrow = Priority.ALWAYS }
vbox(alignment = Pos.CENTER) {
addClass(AppStyle.statusLabel)
label(StatusBinding(game)) {
Expand All @@ -75,7 +76,7 @@ class StatusView: View() {
}
label(ScoreBinding(game))
}
region { useMaxWidth = true }
region { useMaxWidth = true; hgrow = Priority.ALWAYS }
label(playerLabel(Team.TWO))
}

Expand Down

0 comments on commit 0c1a9d6

Please sign in to comment.