From 3dd1d5bd626988df641c81766b1a5c85dbca7e1d Mon Sep 17 00:00:00 2001 From: NoClassDefFoundError Date: Mon, 5 Jan 2026 20:55:46 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20#5123:=20=E4=BF=AE=E5=A4=8D=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4=E7=9A=84=E7=A9=BA?= =?UTF-8?q?=E8=A1=8C=20(#5124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hmcl/ui/account/OfflineAccountSkinPane.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/OfflineAccountSkinPane.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/OfflineAccountSkinPane.java index 19e678650..5317b3c42 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/OfflineAccountSkinPane.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/account/OfflineAccountSkinPane.java @@ -24,6 +24,7 @@ import com.jfoenix.controls.JFXTextField; import javafx.application.Platform; import javafx.beans.InvalidationListener; import javafx.geometry.Insets; +import javafx.geometry.VPos; import javafx.scene.control.Label; import javafx.scene.input.DragEvent; import javafx.scene.input.TransferMode; @@ -174,11 +175,19 @@ public class OfflineAccountSkinPane extends StackPane { case LITTLE_SKIN: HintPane hint = new HintPane(MessageDialogPane.MessageType.INFO); hint.setText(i18n("account.skin.type.little_skin.hint")); - // Allow the tooltip to span two columns and expand horizontally to avoid overlapping with the dialog action area/top-right help button + + // Spanning two columns and expanding horizontally GridPane.setColumnSpan(hint, 2); GridPane.setHgrow(hint, Priority.ALWAYS); hint.setMaxWidth(Double.MAX_VALUE); + // Force top alignment within cells (to avoid vertical offset caused by the baseline) + GridPane.setValignment(hint, VPos.TOP); + + // Set a fixed height as the preferred height to prevent the GridPane from stretching or leaving empty space. + hint.setMaxHeight(Region.USE_PREF_SIZE); + hint.setMinHeight(Region.USE_PREF_SIZE); + gridPane.addRow(0, hint); break; case LOCAL_FILE: