From 4542a68f2f6993e84318edcafbe662e1bb4dd0b2 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 15 Jul 2018 15:04:07 -0400 Subject: [PATCH] Fix y value of tooltip scaling incorrectly Signed-off-by: Mcat12 --- scripts/pi-hole/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index c765b33f..d646bb80 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -99,7 +99,7 @@ var customTooltips = function(tooltip) { } tooltipEl.style.opacity = 1; tooltipEl.style.left = position.left + width + "px"; - tooltipEl.style.top = position.top + tooltip.caretY + "px"; + tooltipEl.style.top = position.top + tooltip.caretY + window.scrollY + "px"; tooltipEl.style.fontFamily = tooltip._bodyFontFamily; tooltipEl.style.fontSize = tooltip.bodyFontSize + "px"; tooltipEl.style.fontStyle = tooltip._bodyFontStyle;