Explorar o código

Improve tooltip

Jeffrey Chen hai 7 meses
pai
achega
cf1cf48d19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/dialog/tooltip.ts

+ 1 - 1
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;
     }