diff options
Diffstat (limited to 'src/main/java/net/sowgro/npehero/editor')
| -rwxr-xr-x | src/main/java/net/sowgro/npehero/editor/DiffEditor.java | 2 | ||||
| -rwxr-xr-x | src/main/java/net/sowgro/npehero/editor/DiffList.java | 4 | ||||
| -rwxr-xr-x | src/main/java/net/sowgro/npehero/editor/LevelList.java | 1 | 
3 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/net/sowgro/npehero/editor/DiffEditor.java b/src/main/java/net/sowgro/npehero/editor/DiffEditor.java index 8591019..f306d60 100755 --- a/src/main/java/net/sowgro/npehero/editor/DiffEditor.java +++ b/src/main/java/net/sowgro/npehero/editor/DiffEditor.java @@ -109,7 +109,7 @@ public class DiffEditor extends Page          scroll.getStyleClass().remove("scroll-pane");          scroll.getStyleClass().add("box");  //        scroll.setPrefHeight(400); -        System.out.println("dbg"+scroll.heightProperty()); +//        System.out.println("dbg"+scroll.heightProperty());          // TODO scroll.heightProperty is 0 here until the window is resized, idk what to do          scroll.prefWidthProperty().bind(scroll.heightProperty().multiply(0.66)); diff --git a/src/main/java/net/sowgro/npehero/editor/DiffList.java b/src/main/java/net/sowgro/npehero/editor/DiffList.java index 7369457..b77af55 100755 --- a/src/main/java/net/sowgro/npehero/editor/DiffList.java +++ b/src/main/java/net/sowgro/npehero/editor/DiffList.java @@ -8,14 +8,11 @@ import javafx.scene.control.*;  import javafx.scene.layout.HBox;  import javafx.scene.layout.Pane;  import javafx.scene.layout.VBox; -import javafx.scene.paint.Color;  import net.sowgro.npehero.Driver; -import net.sowgro.npehero.gui.MainMenu;  import net.sowgro.npehero.levelapi.Difficulty;  import net.sowgro.npehero.levelapi.Level;  import net.sowgro.npehero.main.Page;  import net.sowgro.npehero.main.Sound; -import net.sowgro.npehero.main.ValidIndicator;  import java.io.IOException;  import java.nio.file.FileAlreadyExistsException; @@ -204,6 +201,7 @@ public class DiffList extends Page          centerBox.getChildren().addAll(main, exit);          centerBox.setSpacing(10);          centerBox.setAlignment(Pos.CENTER); +        centerBox.maxWidthProperty().bind(content.widthProperty().multiply(0.95));          content.getChildren().add(centerBox);          content.setAlignment(Pos.CENTER); diff --git a/src/main/java/net/sowgro/npehero/editor/LevelList.java b/src/main/java/net/sowgro/npehero/editor/LevelList.java index d22438e..7c499b7 100755 --- a/src/main/java/net/sowgro/npehero/editor/LevelList.java +++ b/src/main/java/net/sowgro/npehero/editor/LevelList.java @@ -153,6 +153,7 @@ public class LevelList extends Page          centerBox.getChildren().addAll(main, exit);          centerBox.setSpacing(10);          centerBox.setAlignment(Pos.CENTER); +        centerBox.maxWidthProperty().bind(content.widthProperty().multiply(0.95));          content.getChildren().add(centerBox);          content.setAlignment(Pos.CENTER);  | 
