From 84c852c9b508320a2934c08dd323be108f6e68e1 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 12 Apr 2022 13:16:58 +0200 Subject: [PATCH 1/2] fixed Minumum Size of ChatWindow. --- client/src/main/java/ch/zhaw/pm2/multichat/client/ClientUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/ch/zhaw/pm2/multichat/client/ClientUI.java b/client/src/main/java/ch/zhaw/pm2/multichat/client/ClientUI.java index 5f27276..56ae368 100644 --- a/client/src/main/java/ch/zhaw/pm2/multichat/client/ClientUI.java +++ b/client/src/main/java/ch/zhaw/pm2/multichat/client/ClientUI.java @@ -23,10 +23,10 @@ public class ClientUI extends Application { // configure and show stage primaryStage.setScene(scene); - primaryStage.setMinWidth(420); primaryStage.setMinHeight(250); primaryStage.setTitle("Multichat Client"); primaryStage.show(); + primaryStage.setMinWidth(primaryStage.getWidth()); //use automatically computed size as Minimum Size. } catch(Exception e) { System.err.println("Error starting up UI" + e.getMessage()); } From 8661b44fe24009db782ad71a2ec089ab768cbc52 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 12 Apr 2022 13:20:25 +0200 Subject: [PATCH 2/2] activated Textwrapping for Textarea in ChatWindow.fxml --- .../zhaw/pm2/multichat/client/ChatWindow.fxml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/client/src/main/resources/ch/zhaw/pm2/multichat/client/ChatWindow.fxml b/client/src/main/resources/ch/zhaw/pm2/multichat/client/ChatWindow.fxml index 57b6f12..263979e 100644 --- a/client/src/main/resources/ch/zhaw/pm2/multichat/client/ChatWindow.fxml +++ b/client/src/main/resources/ch/zhaw/pm2/multichat/client/ChatWindow.fxml @@ -1,10 +1,18 @@ - - - + + + + + + + + + + + - + @@ -68,7 +76,7 @@
-