Ver Fonte

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

Enrico Berti há 9 anos atrás
pai
commit
ba345a7
1 ficheiros alterados com 1 adições e 1 exclusões
  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';