diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index 7d33e0b6..1e4db09a 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -567,11 +567,15 @@ public class AppServices { public static boolean isReducedWindowHeight() { Window activeWindow = getActiveWindow(); - return (activeWindow != null && activeWindow.getHeight() < 768); + return (activeWindow != null && activeWindow.getHeight() < getReducedWindowHeight()); } public static boolean isReducedWindowHeight(Node node) { - return (node.getScene() != null && node.getScene().getWindow().getHeight() < 768); + return (node.getScene() != null && node.getScene().getWindow().getHeight() < getReducedWindowHeight()); + } + + private static double getReducedWindowHeight() { + return org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.WINDOWS ? 790d : 768d; //Windows includes menu bar of 22px } public Application getApplication() { diff --git a/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml b/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml index ad01fe8e..b6b92ac6 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml @@ -224,11 +224,12 @@ - +