Skip to content

Commit

Permalink
Merge pull request #1442 from ripcurlx/fix-vertical-alignment-for-tra…
Browse files Browse the repository at this point in the history
…nsaction-list-items

Fix vertical alignment
  • Loading branch information
ManfredKarrer authored Mar 9, 2018
2 parents 19b9c6f + 6d959a6 commit 5711527
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class AddressWithIconAndDirection extends AnchorPane {

public AddressWithIconAndDirection(String text, String address, AwesomeIcon awesomeIcon, boolean received) {
Label directionIcon = new Label();
directionIcon.setLayoutY(3);
directionIcon.getStyleClass().add("icon");
directionIcon.getStyleClass().add(received ? "received-funds-icon" : "sent-funds-icon");
AwesomeDude.setIcon(directionIcon, received ? AwesomeIcon.SIGNIN : AwesomeIcon.SIGNOUT);
Expand All @@ -32,7 +31,7 @@ public AddressWithIconAndDirection(String text, String address, AwesomeIcon awes
hBox.setSpacing(-1);
Label label = new AutoTooltipLabel(text);
label.setMouseTransparent(true);
HBox.setMargin(label, new Insets(8, 0, 0, 0));
HBox.setMargin(label, new Insets(5, 0, 0, 0));
HBox.setHgrow(label, Priority.ALWAYS);

hyperlink = new HyperlinkWithIcon(address, awesomeIcon);
Expand All @@ -46,7 +45,7 @@ public AddressWithIconAndDirection(String text, String address, AwesomeIcon awes
hBox.getChildren().addAll(label, hyperlink);

AnchorPane.setLeftAnchor(directionIcon, 3.0);
AnchorPane.setTopAnchor(directionIcon, 6.0);
AnchorPane.setTopAnchor(directionIcon, 4.0);
AnchorPane.setLeftAnchor(hBox, 22.0);
AnchorPane.setRightAnchor(hBox, 15.0);
getChildren().addAll(directionIcon, hBox);
Expand Down

0 comments on commit 5711527

Please sign in to comment.