From fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79 Mon Sep 17 00:00:00 2001 From: sowgro Date: Thu, 18 May 2023 08:51:31 -0400 Subject: fix resizing and the bottom being too long --- src/gui/Settings.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gui/Settings.java') diff --git a/src/gui/Settings.java b/src/gui/Settings.java index 946be85..d3c2632 100644 --- a/src/gui/Settings.java +++ b/src/gui/Settings.java @@ -41,16 +41,14 @@ public class Settings extends Pane options.setSpacing(10); options.setAlignment(Pos.CENTER); options.getChildren().addAll(t1,musicVol,t2,sfxVol,devMenu,exit); - options.minWidthProperty().bind(super.widthProperty().multiply(0.25)); - options.minHeightProperty().bind(super.heightProperty()); - //options.getStyleClass().add("textBox"); + options.prefWidthProperty().bind(super.prefWidthProperty().multiply(0.25)); + options.prefHeightProperty().bind(super.prefHeightProperty()); HBox rootBox = new HBox(); - rootBox.minWidthProperty().bind(super.widthProperty()); - rootBox.minHeightProperty().bind(super.heightProperty()); + rootBox.prefWidthProperty().bind(super.prefWidthProperty()); + rootBox.prefHeightProperty().bind(super.prefHeightProperty()); rootBox.getChildren().add(options); rootBox.setAlignment(Pos.CENTER); super.getChildren().add(rootBox); } - } -- cgit v1.2.3