From b1fbad059ea6190ede5924fc84f3ed575e77bc2b Mon Sep 17 00:00:00 2001 From: DieGurke <55625494+DieGurke@users.noreply.github.com> Date: Fri, 17 Jul 2020 17:02:58 +0200 Subject: [PATCH] Fixed scaling problems (especially on lower res displays) Still a problem with max width of column 1 and max size of stage due to sizeToScene property on the stage --- .../envoy/client/ui/controller/ChatScene.java | 1 - client/src/main/resources/fxml/ChatScene.fxml | 36 ++++++++++--------- 2 files changed, 19 insertions(+), 18 deletions(-) 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 c57d736..99de9d4 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -136,7 +136,6 @@ public final class ChatScene implements Restorable { */ @FXML private void initialize() { - // Initialize message and user rendering messageList.setCellFactory(new ListCellFactory<>(MessageControl::new)); chatList.setCellFactory(new ListCellFactory<>(ChatControl::new)); diff --git a/client/src/main/resources/fxml/ChatScene.fxml b/client/src/main/resources/fxml/ChatScene.fxml index 8541cc2..5f6d226 100644 --- a/client/src/main/resources/fxml/ChatScene.fxml +++ b/client/src/main/resources/fxml/ChatScene.fxml @@ -3,7 +3,6 @@ - @@ -19,16 +18,16 @@ - + - - + + - + @@ -101,11 +100,11 @@ - + - + + + + - +