Explorar o código

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

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
ba345a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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';