From 3af13a10db60dd85465d2f605c7d151981728c90 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:25:19 +0800 Subject: [PATCH] Improve tooltip (#13250) * Improve tooltip * Improve tooltip --- app/src/dialog/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index ffd126145..f595d85df 100644 --- a/app/src/dialog/tooltip.ts +++ b/app/src/dialog/tooltip.ts @@ -44,7 +44,7 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str left = parentRect.right + 8; } else if (position?.endsWith("parentW")) { // 数据库属性视图 - top = parentRect.top + parseInt(position) || 8; + top = parentRect.top + (parseInt(position) || 8); left = parentRect.left - messageElement.clientWidth; }