修复 Java 管理页面中标签可能被截断的问题 (#5482)

This commit is contained in:
Glavo
2026-02-08 04:07:27 +08:00
committed by GitHub
parent 18f3e2870b
commit 2918f19482

View File

@@ -30,6 +30,7 @@ import javafx.scene.control.Skin;
import javafx.scene.control.Tooltip; import javafx.scene.control.Tooltip;
import javafx.scene.layout.BorderPane; import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox; import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.StackPane; import javafx.scene.layout.StackPane;
import javafx.stage.FileChooser; import javafx.stage.FileChooser;
import org.jackhuang.hmcl.java.JavaInfo; import org.jackhuang.hmcl.java.JavaInfo;
@@ -231,6 +232,7 @@ public final class JavaManagementPage extends ListPageBase<JavaRuntime> {
center.setAlignment(Pos.CENTER_LEFT); center.setAlignment(Pos.CENTER_LEFT);
this.content = new TwoLineListItem(); this.content = new TwoLineListItem();
HBox.setHgrow(content, Priority.ALWAYS);
BorderPane.setAlignment(content, Pos.CENTER); BorderPane.setAlignment(content, Pos.CENTER);
center.getChildren().setAll(content); center.getChildren().setAll(content);