reduce tx diagram height to fit min resolution of 768px

This commit is contained in:
Craig Raw 2021-01-26 18:25:34 +02:00
parent 54680a5692
commit 1ad6da86b1
4 changed files with 4 additions and 4 deletions

View file

@ -265,7 +265,7 @@ public class AppServices {
stage.setTitle("Sparrow"); stage.setTitle("Sparrow");
stage.setMinWidth(650); 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.setScene(scene);
stage.getIcons().add(new Image(MainApp.class.getResourceAsStream("/image/sparrow.png"))); stage.getIcons().add(new Image(MainApp.class.getResourceAsStream("/image/sparrow.png")));

View file

@ -32,7 +32,7 @@ import java.util.stream.Collectors;
public class TransactionDiagram extends GridPane { public class TransactionDiagram extends GridPane {
private static final int MAX_UTXOS = 7; private static final int MAX_UTXOS = 7;
private static final int MAX_PAYMENTS = 5; 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 static final int TOOLTIP_SHOW_DELAY = 50;
private WalletTransaction walletTx; private WalletTransaction walletTx;

View file

@ -66,7 +66,7 @@
} }
#transactionDiagram { #transactionDiagram {
-fx-min-height: 230px; -fx-min-height: 215px;
} }
#transactionDiagram .boundary { #transactionDiagram .boundary {

View file

@ -127,7 +127,7 @@
</AnchorPane> </AnchorPane>
</GridPane> </GridPane>
<AnchorPane> <AnchorPane>
<TransactionDiagram fx:id="transactionDiagram" maxWidth="700" maxHeight="230" AnchorPane.leftAnchor="100" /> <TransactionDiagram fx:id="transactionDiagram" maxWidth="700" maxHeight="215" AnchorPane.leftAnchor="100" />
</AnchorPane> </AnchorPane>
</VBox> </VBox>
</center> </center>