From 84c852c9b508320a2934c08dd323be108f6e68e1 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 12 Apr 2022 13:16:58 +0200 Subject: [PATCH] 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()); }