diff --git a/client/src/main/java/envoy/client/ui/controller/ChatScene.java b/client/src/main/java/envoy/client/ui/controller/ChatScene.java index c2b0ef1..4103a5b 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -191,7 +191,6 @@ public final class ChatScene implements EventListener, Restorable { // Set the design of the box in the upper-left corner settingsButton.setAlignment(Pos.BOTTOM_RIGHT); - HBox.setHgrow(spaceBetweenUserAndSettingsButton, Priority.ALWAYS); generateOwnStatusControl(); Platform.runLater(() -> { @@ -727,6 +726,7 @@ public final class ChatScene implements EventListener, Restorable { // Else prepend it to the HBox children final var ownUserControl = new ContactControl(localDB.getUser()); ownUserControl.setAlignment(Pos.CENTER_LEFT); + HBox.setHgrow(ownUserControl, Priority.NEVER); ownContactControl.getChildren().add(0, ownUserControl); } } diff --git a/client/src/main/resources/fxml/ChatScene.fxml b/client/src/main/resources/fxml/ChatScene.fxml index d3fb6e9..8221f19 100644 --- a/client/src/main/resources/fxml/ChatScene.fxml +++ b/client/src/main/resources/fxml/ChatScene.fxml @@ -167,7 +167,7 @@ + fx:id="spaceBetweenUserAndSettingsButton" HBox.hgrow="ALWAYS" />