From be75e0f10360d2cafc20d5e15f0322eadfc7310e Mon Sep 17 00:00:00 2001 From: kckckc Date: Sun, 17 Apr 2022 00:26:27 -0700 Subject: [PATCH 1/2] Closes #1868 --- src/client/ui/templates/tooltipInfo/tooltipInfo.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/ui/templates/tooltipInfo/tooltipInfo.js b/src/client/ui/templates/tooltipInfo/tooltipInfo.js index 548116de..d45325e1 100644 --- a/src/client/ui/templates/tooltipInfo/tooltipInfo.js +++ b/src/client/ui/templates/tooltipInfo/tooltipInfo.js @@ -16,6 +16,8 @@ define([ postRender: function () { this.onEvent('onMobHover', this.onMobHover.bind(this)); + + this.hide(); }, onMobHover: function (mob) { From 8e192d1734d1227b28f9cf72b04107970e368b4c Mon Sep 17 00:00:00 2001 From: kckckc Date: Sun, 17 Apr 2022 15:31:45 -0700 Subject: [PATCH 2/2] Hide using css --- src/client/ui/templates/tooltipInfo/styles.less | 1 + src/client/ui/templates/tooltipInfo/tooltipInfo.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/ui/templates/tooltipInfo/styles.less b/src/client/ui/templates/tooltipInfo/styles.less index 01c5dbfe..fe21d9c3 100644 --- a/src/client/ui/templates/tooltipInfo/styles.less +++ b/src/client/ui/templates/tooltipInfo/styles.less @@ -1,6 +1,7 @@ @import "../../../css/colors.less"; .uiTooltipInfo { + display: none; position: absolute; right: 11px; bottom: 164px; diff --git a/src/client/ui/templates/tooltipInfo/tooltipInfo.js b/src/client/ui/templates/tooltipInfo/tooltipInfo.js index d45325e1..548116de 100644 --- a/src/client/ui/templates/tooltipInfo/tooltipInfo.js +++ b/src/client/ui/templates/tooltipInfo/tooltipInfo.js @@ -16,8 +16,6 @@ define([ postRender: function () { this.onEvent('onMobHover', this.onMobHover.bind(this)); - - this.hide(); }, onMobHover: function (mob) {