首页切换实例菜单仅在菜单高度大于最大高度时显示垂直滚动条 (#5088)

This commit is contained in:
neveler
2026-01-01 20:28:38 +08:00
committed by GitHub
parent 2e572d2b02
commit 54f9902849

View File

@@ -298,7 +298,7 @@ public final class MainPage extends StackPane implements DecoratorPage {
menu.setMaxHeight(365); menu.setMaxHeight(365);
menu.setMaxWidth(545); menu.setMaxWidth(545);
menu.setAlwaysShowingVBar(true); menu.setAlwaysShowingVBar(false);
FXUtils.onClicked(menu, popup::hide); FXUtils.onClicked(menu, popup::hide);
versionNodes = MappedObservableList.create(versions, version -> { versionNodes = MappedObservableList.create(versions, version -> {
Node node = PopupMenu.wrapPopupMenuItem(new GameItem(profile, version.getId())); Node node = PopupMenu.wrapPopupMenuItem(new GameItem(profile, version.getId()));