diff --git a/src/main/java/woofwoof/WoofWoof.java b/src/main/java/woofwoof/WoofWoof.java index ef5f5d9e6c..b23c8f4711 100644 --- a/src/main/java/woofwoof/WoofWoof.java +++ b/src/main/java/woofwoof/WoofWoof.java @@ -110,6 +110,7 @@ public void initialize() { Woof.wrapText(WoofMessage.HI.toFormattedValue(), "", Woof.getChatWidth()), this.doggo ) ); + this.dialogArea.prefHeightProperty().bind(this.scrollPane.heightProperty()); } /** @@ -135,9 +136,11 @@ public void start(Stage primaryStage) { loadCssStyles(); primaryStage.setScene(this.scene); primaryStage.setTitle(WoofMessage.WOOF_TITLE.toFormattedValue()); - primaryStage.setResizable(false); + primaryStage.setMinHeight(290.0); fxmlLoader.getController().setWoof(this.woof); primaryStage.show(); + primaryStage.maxWidthProperty().bind(primaryStage.widthProperty()); + primaryStage.minWidthProperty().bind(primaryStage.widthProperty()); } catch (IOException e) { System.out.printf("really oh no\n%s\n", e.getMessage()); } diff --git a/src/main/resources/styles/dialogArea.css b/src/main/resources/styles/dialogArea.css index d87e9259f9..6612b8331d 100644 --- a/src/main/resources/styles/dialogArea.css +++ b/src/main/resources/styles/dialogArea.css @@ -1,6 +1,5 @@ #dialogArea { -fx-background-color: #C5CBEC; - -fx-min-height: 680.0; -fx-pref-width: 740.0; -fx-padding: 10px 20px 0px 20px; }