diff --git a/src/main/java/org/cryptomator/ui/error/ErrorComponent.java b/src/main/java/org/cryptomator/ui/error/ErrorComponent.java index 554aa65f1..47798c920 100644 --- a/src/main/java/org/cryptomator/ui/error/ErrorComponent.java +++ b/src/main/java/org/cryptomator/ui/error/ErrorComponent.java @@ -20,6 +20,8 @@ public interface ErrorComponent { default Stage show() { Stage stage = window(); stage.setScene(scene()); + stage.setMinWidth(420); + stage.setMinHeight(300); stage.show(); return stage; } diff --git a/src/main/java/org/cryptomator/ui/health/HealthCheckComponent.java b/src/main/java/org/cryptomator/ui/health/HealthCheckComponent.java index aa69e0828..3903734c9 100644 --- a/src/main/java/org/cryptomator/ui/health/HealthCheckComponent.java +++ b/src/main/java/org/cryptomator/ui/health/HealthCheckComponent.java @@ -25,6 +25,8 @@ public interface HealthCheckComponent { default Stage showHealthCheckWindow() { Stage stage = window(); stage.setScene(startScene().get()); + stage.setMinWidth(420); + stage.setMinHeight(300); stage.show(); return stage; } diff --git a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java index 37b9841d0..4b9732e19 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/VaultListController.java @@ -112,6 +112,10 @@ public class VaultListController implements FxController { vaultList.setItems(vaults); vaultList.setCellFactory(cellFactory); + vaultList.prefHeightProperty().bind( + vaultList.fixedCellSizeProperty().multiply(Bindings.size(vaultList.getItems())) + ); + selectedVault.bind(vaultList.getSelectionModel().selectedItemProperty()); vaults.addListener((ListChangeListener.Change c) -> { while (c.next()) { diff --git a/src/main/resources/fxml/health_start.fxml b/src/main/resources/fxml/health_start.fxml index cc65aaaaa..56c38f740 100644 --- a/src/main/resources/fxml/health_start.fxml +++ b/src/main/resources/fxml/health_start.fxml @@ -25,8 +25,8 @@ - - + + diff --git a/src/main/resources/fxml/preferences_about.fxml b/src/main/resources/fxml/preferences_about.fxml index 1555de504..55577426f 100644 --- a/src/main/resources/fxml/preferences_about.fxml +++ b/src/main/resources/fxml/preferences_about.fxml @@ -17,8 +17,8 @@ - - + + diff --git a/src/main/resources/fxml/remove_cert.fxml b/src/main/resources/fxml/remove_cert.fxml index 833a96400..63b44bc70 100644 --- a/src/main/resources/fxml/remove_cert.fxml +++ b/src/main/resources/fxml/remove_cert.fxml @@ -43,7 +43,7 @@