Merge pull request #6070 from jmacxx/fix_issue_6059

Disable roll over popups in combobox item renderers.
This commit is contained in:
Christoph Atteneder 2022-02-21 20:23:55 +01:00 committed by GitHub
commit da25c058a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -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");

View File

@ -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 {