From f024dba940de8a391a22a827847fba87d105ed93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=AB=E4=B9=90=E5=87=A4=E7=88=AA=E7=8E=8B?= <165921128+KSSJW@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:15:03 +0800 Subject: [PATCH] Fix: Dynamically lock fixedCellSize of VersionsPageSkin (#6288) --- .../java/org/jackhuang/hmcl/ui/download/VersionsPage.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java index afe1a6f5f0..b50448370c 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/download/VersionsPage.java @@ -390,7 +390,12 @@ public final class VersionsPage extends Control implements WizardPage, Refreshab list = new JFXListView<>(); list.getStyleClass().add("jfx-list-view-float"); - list.setFixedCellSize(65); + RemoteVersionListCell dummyCell = new RemoteVersionListCell(control); + dummyCell.twoLineListItem.setTitle("Dummy"); + dummyCell.twoLineListItem.setSubtitle("Dummy"); + dummyCell.imageView.setImage(VersionIconType.GRASS.getIcon()); + prepareNode(dummyCell.pane); + list.setFixedCellSize(dummyCell.pane.prefHeight(-1)); VBox.setVgrow(list, Priority.ALWAYS);