changeset 3375:e1a75cd15450

available_fairway_depth: fix tooltip
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 22 May 2019 14:00:28 +0200
parents 7d8c41cc50f5
children 70b7078b4516
files client/src/components/fairway/AvailableFairwayDepth.vue
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/AvailableFairwayDepth.vue	Wed May 22 13:26:54 2019 +0200
+++ b/client/src/components/fairway/AvailableFairwayDepth.vue	Wed May 22 14:00:28 2019 +0200
@@ -531,7 +531,7 @@
           const value = Number.parseFloat(hoursInDays(d.ldc)).toFixed(2);
           d3.select("#tooltip")
             .text(value)
-            .attr("y", y - 10)
+            .attr("y", y - 40)
             .attr("x", d3.event.pageX - dy);
           //d3.event.pageX gives coordinates relative to SVG
           //dy gives offset of svg on page
@@ -565,7 +565,7 @@
           );
           d3.select("#tooltip")
             .text(value)
-            .attr("y", y - 10)
+            .attr("y", y - 40)
             .attr("x", d3.event.pageX - dy);
           //d3.event.pageX gives coordinates relative to SVG
           //dy gives offset of svg on page