aboutsummaryrefslogtreecommitdiff
path: root/src/gui/LevelSurround.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/LevelSurround.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/LevelSurround.java8
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