Fix #3199: 修复运行在 Java 8 上时游戏安装界面卡片布局的问题 (#3201)

This commit is contained in:
Glavo 2024-07-29 15:46:11 +08:00 committed by GitHub
parent 3ebbdb60ef
commit 47cc9ebe2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -299,7 +299,7 @@ public class InstallerItem extends Control {
Pane pane;
if (control.style == Style.CARD) {
pane = new VBox();
holder.add(FXUtils.onWeakChangeAndOperate(pane.widthProperty(), v -> FXUtils.setLimitHeight(pane, v.doubleValue() * 0.7)));
holder.add(FXUtils.onWeakChange(pane.widthProperty(), v -> FXUtils.setLimitHeight(pane, v.doubleValue() * 0.7)));
} else {
pane = new HBox();
}