Skip to content

Commit

Permalink
Set HelpWindow to be adjustable, fix AY2425S1-CS2103T-T12-4#203
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitty-001 committed Nov 5, 2024
1 parent fdc8f77 commit 0e53365
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public String getDescription() {
*/
public HelpWindow(Stage root) {
super(FXML, root);

this.getRoot().setResizable(true);
this.getRoot().setMinHeight(500);
this.getRoot().setMinWidth(600);

helpTable(helpTable);
helpMessage.setText(HELP_MESSAGE);
// Add key event filter for ESC key to close the window
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/view/HelpWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<Insets bottom="0" left="5.0" right="10.0" top="5.0" />
</padding>
</HBox>
<TableView fx:id="helpTable"></TableView>
<TableView fx:id="helpTable" VBox.vgrow="ALWAYS"></TableView>
<VBox.margin>
<Insets top="10.0" right="10.0" bottom="10.0" left="10.0" />
</VBox.margin>
Expand Down

0 comments on commit 0e53365

Please sign in to comment.