fix: horizontal scroll bar should not appear.

This commit is contained in:
huanghongxun 2021-09-14 00:06:57 +08:00
parent ff3fa31c25
commit cbe5e3a9ff

View File

@ -128,9 +128,11 @@ public class GameListPage extends ListPageBase<GameListItem> 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);