mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2026-10-29 15:10:30 +08:00
Fix: Dynamically lock fixedCellSize of VersionsPageSkin (#6288)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user