mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-10 16:43:14 +00:00
improve vertical layout sizing on transaction tabs
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user