Fix: Dynamically lock fixedCellSize of VersionsPageSkin (#6288)

This commit is contained in:
快乐凤爪王
2026-07-02 21:15:03 +08:00
committed by GitHub
parent 52736d3c86
commit f024dba940
@@ -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);