Skip to content

Commit

Permalink
Merge pull request #26 from tjingsheng/improve-application
Browse files Browse the repository at this point in the history
improve-application
  • Loading branch information
tjingsheng authored Sep 20, 2023
2 parents 4e28cbc + 78e62bb commit 7584e98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/woofwoof/WoofWoof.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void initialize() {
Woof.wrapText(WoofMessage.HI.toFormattedValue(), "", Woof.getChatWidth()), this.doggo
)
);
this.dialogArea.prefHeightProperty().bind(this.scrollPane.heightProperty());
}

/**
Expand All @@ -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.<WoofWoof>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());
}
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/styles/dialogArea.css
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 7584e98

Please sign in to comment.