aboutsummaryrefslogtreecommitdiff
path: root/src/gui/Settings.java
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-18 08:51:31 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-18 08:51:31 -0400
commitfe9794bdc8270b43ed5ae847d65ea2a2eecd4a79 (patch)
tree6417e66b2de9f67647ae9e0d6b853858da466275 /src/gui/Settings.java
parentbbad14a33c614ac3480c599dd72a06e14a86295c (diff)
downloadNPEhero-fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79.tar.gz
NPEhero-fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79.tar.bz2
NPEhero-fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79.zip
fix resizing and the bottom being too long
Diffstat (limited to '')
-rw-r--r--src/gui/Settings.java10
1 files changed, 4 insertions, 6 deletions
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);
}
-
}