From 3541d31b95b3a148f2fe1d08c024420b45bde777 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Fri, 8 Apr 2016 22:11:38 +0200 Subject: [PATCH] Fix style issue with copy icon --- .../gui/main/disputes/trader/TraderDisputeView.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gui/src/main/java/io/bitsquare/gui/main/disputes/trader/TraderDisputeView.java b/gui/src/main/java/io/bitsquare/gui/main/disputes/trader/TraderDisputeView.java index ca2f65477c..36ea320818 100644 --- a/gui/src/main/java/io/bitsquare/gui/main/disputes/trader/TraderDisputeView.java +++ b/gui/src/main/java/io/bitsquare/gui/main/disputes/trader/TraderDisputeView.java @@ -494,10 +494,6 @@ public class TraderDisputeView extends ActivatableView { headerLabel.setTextAlignment(TextAlignment.CENTER); attachmentsBox.setSpacing(5); statusIcon.setStyle("-fx-font-size: 10;"); - - // TODO icon not displayed correctly (too small), don't knwo why.... - AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY, "16.0"); - copyIcon.getStyleClass().add("copy-icon");// -fx-cursor: hand; Tooltip.install(copyIcon, new Tooltip("Copy to clipboard")); messageAnchorPane.getChildren().addAll(bg, arrow, headerLabel, messageLabel, copyIcon, attachmentsBox, statusIcon); } @@ -641,7 +637,10 @@ public class TraderDisputeView extends ActivatableView { AnchorPane.setBottomAnchor(messageLabel, bottomBorder + 10); } - + // Need to set it here otherwise style is not correct + AwesomeDude.setIcon(copyIcon, AwesomeIcon.COPY, "16.0"); + copyIcon.getStyleClass().add("copy-icon"); + // TODO There are still some cell rendering issues on updates setGraphic(messageAnchorPane); } else {