From c085fb1a08809ab1a77ac6d31918beb10a074337 Mon Sep 17 00:00:00 2001 From: Karlo E Date: Thu, 24 May 2018 09:17:43 -0400 Subject: [PATCH] fixed tooltip position for charts placed on lower part of the page as per issue #2163, fixed by @RedScourge. This will fix the tooltip position of charts placed on lower part of the page where scrolling is needed. --- src/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tooltip.js b/src/tooltip.js index 274bc8512..2c5831872 100644 --- a/src/tooltip.js +++ b/src/tooltip.js @@ -221,7 +221,7 @@ nv.models.tooltip = function() { var pos = position(), gravityOffset = calcGravityOffset(pos), left = pos.left + gravityOffset.left, - top = pos.top + gravityOffset.top; + top = pos.top + gravityOffset.top + window.scrollY; // delay hiding a bit to avoid flickering if (hidden) {