set preferences window min width and height

This commit is contained in:
Jan-Peter Klein 2024-07-09 13:48:45 +02:00
parent cb054bb4f5
commit 5f5b5a5426
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,8 @@ public interface PreferencesComponent {
selectedTabProperty().set(selectedTab);
Stage stage = window();
stage.setScene(scene().get());
stage.setMinWidth(420);
stage.setMinHeight(300);
stage.show();
stage.requestFocus();
return stage;

View File

@ -7,8 +7,6 @@
xmlns="http://javafx.com/javafx"
fx:id="tabPane"
fx:controller="org.cryptomator.ui.preferences.PreferencesController"
minWidth="-Infinity"
maxWidth="-Infinity"
prefWidth="650"
tabMinWidth="60"
tabClosingPolicy="UNAVAILABLE"