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()); } 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 @@
-