Browse Source

set preferences window min width and height

Jan-Peter Klein 9 months ago
parent
commit
5f5b5a5426

+ 2 - 0
src/main/java/org/cryptomator/ui/preferences/PreferencesComponent.java

@@ -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;

+ 0 - 2
src/main/resources/fxml/preferences.fxml

@@ -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"