From 134f96be0859569a3e7c8b75b05d72ca1eb08048 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Wed, 4 Aug 2021 12:12:20 +0800 Subject: [PATCH] fix: ModDownloadListPage ListView should fill the blank. --- .../jackhuang/hmcl/ui/versions/ModDownloadListPage.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java index 3114d4b04..b57663f04 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java @@ -138,11 +138,12 @@ public class ModDownloadListPage extends Control implements DecoratorPage, Versi protected ModDownloadListPageSkin(ModDownloadListPage control) { super(control); - VBox pane = new VBox(); + BorderPane pane = new BorderPane(); GridPane searchPane = new GridPane(); + pane.setTop(searchPane); searchPane.getStyleClass().addAll("card"); - VBox.setMargin(searchPane, new Insets(10, 10, 0, 10)); + BorderPane.setMargin(searchPane, new Insets(10, 10, 0, 10)); ColumnConstraints column1 = new ColumnConstraints(); column1.setPercentWidth(50); @@ -229,6 +230,7 @@ public class ModDownloadListPage extends Control implements DecoratorPage, Versi } SpinnerPane spinnerPane = new SpinnerPane(); + pane.setCenter(spinnerPane); { spinnerPane.loadingProperty().bind(getSkinnable().loadingProperty()); spinnerPane.failedReasonProperty().bind(Bindings.createStringBinding(() -> { @@ -285,8 +287,6 @@ public class ModDownloadListPage extends Control implements DecoratorPage, Versi }); } - pane.getChildren().setAll(searchPane, spinnerPane); - getChildren().setAll(pane); }