From fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79 Mon Sep 17 00:00:00 2001 From: sowgro <tpoke.ferrari@gmail.com> Date: Thu, 18 May 2023 08:51:31 -0400 Subject: fix resizing and the bottom being too long --- src/gui/MainMenu.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/MainMenu.java') diff --git a/src/gui/MainMenu.java b/src/gui/MainMenu.java index d04408d..39fb2be 100644 --- a/src/gui/MainMenu.java +++ b/src/gui/MainMenu.java @@ -48,8 +48,8 @@ public class MainMenu extends Pane centerBox.setSpacing(10); VBox rootBox = new VBox(); - rootBox.minWidthProperty().bind(super.widthProperty()); - rootBox.minHeightProperty().bind(super.heightProperty()); + rootBox.prefWidthProperty().bind(super.prefWidthProperty()); + rootBox.prefHeightProperty().bind(super.prefHeightProperty()); rootBox.setAlignment(Pos.CENTER); rootBox.getChildren().add(centerBox); -- cgit v1.2.3