From cca61d281c04fe1e96cd08b9417ad028d2d0a4a0 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Wed, 2 Feb 2022 17:33:21 +0200 Subject: [PATCH] followup #3 --- .../com/sparrowwallet/sparrow/control/TransactionDiagram.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index ac022876..bedb37d2 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -464,7 +464,8 @@ public class TransactionDiagram extends GridPane { } else if(label.getText().trim().isEmpty()) { amountLabel.setText(""); } - amountLabel.setMinWidth(TextUtils.computeTextWidth(amountLabel.getFont(), amountLabel.getText(), 0.0D) + 2); + amountLabel.setMinWidth(TextUtils.computeTextWidth(amountLabel.getFont(), amountLabel.getText(), 0.0D) + 7); + amountLabel.setPadding(new Insets(0, 0, 0, 5)); inputBox.getChildren().addAll(region, amountLabel); } @@ -645,6 +646,7 @@ public class TransactionDiagram extends GridPane { paymentBox.setAlignment(Pos.CENTER_LEFT); paymentBox.getChildren().add(recipientLabel); if(isExpanded()) { + recipientLabel.setMinWidth(120); Region region = new Region(); region.setMinWidth(20); HBox.setHgrow(region, Priority.ALWAYS);