From 44310cbd0e04a155078a4e296750f24f19f8d8e9 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Wed, 9 Oct 2024 16:50:26 +0200 Subject: [PATCH 1/6] set missing min width and height --- src/main/java/org/cryptomator/ui/error/ErrorComponent.java | 2 ++ .../java/org/cryptomator/ui/health/HealthCheckComponent.java | 2 ++ 2 files changed, 4 insertions(+) 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; } From 118a1411d8998908923236c78b749cb0e5cd4c57 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Wed, 9 Oct 2024 16:55:56 +0200 Subject: [PATCH 2/6] fixed empty vaultList contextMenu --- .../ui/mainwindow/VaultListController.java | 4 ++++ src/main/resources/fxml/vault_list.fxml | 13 ++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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/vault_list.fxml b/src/main/resources/fxml/vault_list.fxml index ae0905d4e..267148d3e 100644 --- a/src/main/resources/fxml/vault_list.fxml +++ b/src/main/resources/fxml/vault_list.fxml @@ -18,11 +18,14 @@ minWidth="206"> - - - - - + + + + + + + +