Skip to content

Commit

Permalink
Bugfix in load game screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
goktug-gurbuzturk-wp committed Dec 20, 2020
1 parent 473550f commit 4df4578
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/scenecontrollers/LoadGameSceneController.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public void initialize(URL url, ResourceBundle resourceBundle) {
private VBox loadBox;
public void getSavedGames() {
VBox buttonBox = new VBox();
buttonBox.setMaxWidth(1500);
buttonBox.setMaxHeight(700);
buttonBox.setPrefWidth(500);
buttonBox.setPrefHeight(700);
buttonBox.setAlignment(Pos.TOP_CENTER);
buttonBox.setStyle("-fx-padding: 50 50 50 220;");
buttonBox.setSpacing(15.0);
Expand All @@ -42,6 +42,7 @@ public void getSavedGames() {
newButton.setMinWidth(buttonBox.getWidth());
newButton.setPrefWidth(300);
newButton.setPrefHeight(100);
newButton.setMinHeight(100);
newButton.setOnAction(this::handleLoadGameButton);
buttonBox.getChildren().add(newButton);
}
Expand Down

0 comments on commit 4df4578

Please sign in to comment.