From 6f5cc4d59da3689318177729e8e5da1211e32d2b Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Tue, 10 Aug 2021 01:08:05 +0800 Subject: [PATCH] fix: crash in ModDownloadListPage. Closes #951. --- .../jackhuang/hmcl/ui/versions/ModDownloadListPage.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java index 865bd1239..79ccfd596 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModDownloadListPage.java @@ -255,16 +255,9 @@ public class ModDownloadListPage extends Control implements DecoratorPage, Versi ImageView imageView = new ImageView(); { - Region clippedContainer = (Region) listView.lookup(".clipped-container"); - setPrefWidth(0); HBox container = new HBox(8); container.setAlignment(Pos.CENTER_LEFT); pane.getChildren().add(container); - if (clippedContainer != null) { - maxWidthProperty().bind(clippedContainer.widthProperty()); - prefWidthProperty().bind(clippedContainer.widthProperty()); - minWidthProperty().bind(clippedContainer.widthProperty()); - } container.getChildren().setAll(FXUtils.limitingSize(imageView, 40, 40), content); }