mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
window.scrollY isn't supported on IE
Replace it with `window.pageYOffset` Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ var customTooltips = function(tooltip) {
|
||||
}
|
||||
tooltipEl.style.opacity = 1;
|
||||
tooltipEl.style.left = position.left + width + "px";
|
||||
tooltipEl.style.top = position.top + tooltip.caretY + window.scrollY + "px";
|
||||
tooltipEl.style.top = position.top + tooltip.caretY + window.pageYOffset + "px";
|
||||
tooltipEl.style.fontFamily = tooltip._bodyFontFamily;
|
||||
tooltipEl.style.fontSize = tooltip.bodyFontSize + "px";
|
||||
tooltipEl.style.fontStyle = tooltip._bodyFontStyle;
|
||||
|
||||
Reference in New Issue
Block a user