diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2023-05-18 08:51:31 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2023-05-18 08:51:31 -0400 |
commit | fe9794bdc8270b43ed5ae847d65ea2a2eecd4a79 (patch) | |
tree | 6417e66b2de9f67647ae9e0d6b853858da466275 /src/gui/LevelSurround.java | |
parent | bbad14a33c614ac3480c599dd72a06e14a86295c (diff) | |
download | NPEhero-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/LevelSurround.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/LevelSurround.java b/src/gui/LevelSurround.java index bf71f2f..204ec3a 100644 --- a/src/gui/LevelSurround.java +++ b/src/gui/LevelSurround.java @@ -79,8 +79,8 @@ public class LevelSurround extends Pane comboTextBox.setPadding(new Insets(10)); Pane game = new Pane(); - game.minWidthProperty().bind(super.heightProperty().multiply(0.66)); - game.minHeightProperty().bind(super.heightProperty()); + game.prefWidthProperty().bind(super.prefHeightProperty().multiply(0.66)); + game.prefHeightProperty().bind(super.prefHeightProperty()); game.getStyleClass().add("textBox"); HBox centerBox = new HBox(); @@ -91,7 +91,7 @@ public class LevelSurround extends Pane root.getChildren().addAll(centerBox, topBar); super.getChildren().add(root); - root.minWidthProperty().bind(super.minWidthProperty()); - root.minHeightProperty().bind(super.minHeightProperty()); + root.prefWidthProperty().bind(super.prefWidthProperty()); + root.prefHeightProperty().bind(super.prefHeightProperty()); } }
\ No newline at end of file |