From a9630feb199f6ae27376ecfecb5015cb0a3b25ce Mon Sep 17 00:00:00 2001 From: jmacxx <47253594+jmacxx@users.noreply.github.com> Date: Mon, 21 Feb 2022 12:54:51 -0600 Subject: [PATCH] Disable roll over popups in combobox item renderers. Due to JFX bug https://bugs.openjdk.java.net/browse/JDK-8265835 --- .../java/bisq/desktop/components/InfoAutoTooltipLabel.java | 6 ++++++ desktop/src/main/java/bisq/desktop/util/GUIUtil.java | 1 + 2 files changed, 7 insertions(+) diff --git a/desktop/src/main/java/bisq/desktop/components/InfoAutoTooltipLabel.java b/desktop/src/main/java/bisq/desktop/components/InfoAutoTooltipLabel.java index add5cf9dbf..83562396b0 100644 --- a/desktop/src/main/java/bisq/desktop/components/InfoAutoTooltipLabel.java +++ b/desktop/src/main/java/bisq/desktop/components/InfoAutoTooltipLabel.java @@ -74,6 +74,12 @@ public class InfoAutoTooltipLabel extends AutoTooltipLabel { setGraphic(textIcon); } + // May be required until https://bugs.openjdk.java.net/browse/JDK-8265835 is fixed. + public void disableRolloverPopup() { + textIcon.setOnMouseEntered(null); + textIcon.setOnMouseExited(null); + } + private void positionAndActivateIcon(ContentDisplay contentDisplay, String info, double width) { textIcon.setOpacity(0.4); textIcon.getStyleClass().add("tooltip-icon"); diff --git a/desktop/src/main/java/bisq/desktop/util/GUIUtil.java b/desktop/src/main/java/bisq/desktop/util/GUIUtil.java index 29040f6730..d663f7873e 100644 --- a/desktop/src/main/java/bisq/desktop/util/GUIUtil.java +++ b/desktop/src/main/java/bisq/desktop/util/GUIUtil.java @@ -959,6 +959,7 @@ public class GUIUtil { MaterialDesignIcon icon = getIconForSignState(signState); label.setIcon(icon, info); + label.disableRolloverPopup(); // see https://github.com/bisq-network/bisq/issues/6059 } setGraphic(label); } else {