diff --git a/app/src/dialog/tooltip.ts b/app/src/dialog/tooltip.ts index ffd126145a7..05f3eaf49a7 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) || 0) || 8; left = parentRect.left - messageElement.clientWidth; }