From 1ad6da86b1991f668da92d0ab7b49c53994f48ce Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 26 Jan 2021 18:25:34 +0200 Subject: [PATCH] reduce tx diagram height to fit min resolution of 768px --- src/main/java/com/sparrowwallet/sparrow/AppServices.java | 2 +- .../com/sparrowwallet/sparrow/control/TransactionDiagram.java | 2 +- src/main/resources/com/sparrowwallet/sparrow/wallet/send.css | 2 +- src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppServices.java b/src/main/java/com/sparrowwallet/sparrow/AppServices.java index 433559a8..c04ba785 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppServices.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppServices.java @@ -265,7 +265,7 @@ public class AppServices { stage.setTitle("Sparrow"); stage.setMinWidth(650); - stage.setMinHeight(org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.OSX ? 750 : 780); + stage.setMinHeight(org.controlsfx.tools.Platform.getCurrent() == org.controlsfx.tools.Platform.OSX ? 750 : 768); stage.setScene(scene); stage.getIcons().add(new Image(MainApp.class.getResourceAsStream("/image/sparrow.png"))); diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index 8c433f87..a16a834a 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -32,7 +32,7 @@ import java.util.stream.Collectors; public class TransactionDiagram extends GridPane { private static final int MAX_UTXOS = 7; private static final int MAX_PAYMENTS = 5; - private static final double DIAGRAM_HEIGHT = 230.0; + private static final double DIAGRAM_HEIGHT = 215.0; private static final int TOOLTIP_SHOW_DELAY = 50; private WalletTransaction walletTx; diff --git a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.css b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.css index f65a1bac..22d0b083 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.css +++ b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.css @@ -66,7 +66,7 @@ } #transactionDiagram { - -fx-min-height: 230px; + -fx-min-height: 215px; } #transactionDiagram .boundary { diff --git a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml index 29877e44..ab125cb6 100644 --- a/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml +++ b/src/main/resources/com/sparrowwallet/sparrow/wallet/send.fxml @@ -127,7 +127,7 @@ - +