From cbe5e3a9ff289f34d465e87fe7242fad1460e976 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Tue, 14 Sep 2021 00:06:57 +0800 Subject: [PATCH] fix: horizontal scroll bar should not appear. --- .../main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java index 51ae5db31..f3d781e44 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/GameListPage.java @@ -128,9 +128,11 @@ public class GameListPage extends ListPageBase implements Decorato addProfileItem.setOnAction(e -> Controllers.navigate(new ProfilePage(null))); ScrollPane pane = new ScrollPane(); + pane.setFitToWidth(true); VBox wrapper = new VBox(); wrapper.getStyleClass().add("advanced-list-box-content"); VBox box = new VBox(); + box.setFillWidth(true); Bindings.bindContent(box.getChildren(), profileListItems); wrapper.getChildren().setAll(box, addProfileItem); pane.setContent(wrapper);