浏览代码

HUE-3768 [editor] Graph tooltips can be hidden by editor

Enrico Berti 9 年之前
父节点
当前提交
ba345a7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/nv.d3.js

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/nv.d3.js

@@ -834,7 +834,7 @@ window.nv.tooltip.* also has various helper methods.
 
 
             container.style.left = left+'px';
-            container.style.top = top+'px';
+            container.style.top = Math.max(top, 0)+'px';
             container.style.opacity = 1;
             container.style.position = 'absolute';