Skip to content

Commit e567196

Browse files
committed
Fix: control.txtName width of InstallersPage
1 parent 2855df3 commit e567196

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/download/AbstractInstallersPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected InstallersPageSkin(AbstractInstallersPage control) {
130130
versionNamePane.setStyle("-fx-padding: 20 8 20 16");
131131
versionNamePane.setAlignment(Pos.CENTER_LEFT);
132132

133-
control.txtName.setMaxWidth(300);
133+
control.txtName.setPrefWidth(300);
134134
versionNamePane.getChildren().setAll(new Label(i18n("version.name")), control.txtName);
135135
root.setTop(versionNamePane);
136136
}

0 commit comments

Comments
 (0)