From 0c1a9d6c11d37d7cc307475b08f52d9788be2c62 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 21 Sep 2023 15:11:52 +0200 Subject: [PATCH] fix(view/status): align team stats to the sides --- src/main/kotlin/sc/gui/view/StatusView.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/sc/gui/view/StatusView.kt b/src/main/kotlin/sc/gui/view/StatusView.kt index 9f7c36a..323c2bb 100644 --- a/src/main/kotlin/sc/gui/view/StatusView.kt +++ b/src/main/kotlin/sc/gui/view/StatusView.kt @@ -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 @@ -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)) { @@ -75,7 +76,7 @@ class StatusView: View() { } label(ScoreBinding(game)) } - region { useMaxWidth = true } + region { useMaxWidth = true; hgrow = Priority.ALWAYS } label(playerLabel(Team.TWO)) }