From 156e6302e6acfe6c9bc80a9d733e5f1402fb1e14 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 27 Feb 2025 14:49:19 +0100 Subject: [PATCH] Fix status icon positioning --- samples/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/common.js b/samples/common.js index 738c8de..b2b5ebf 100644 --- a/samples/common.js +++ b/samples/common.js @@ -59,10 +59,10 @@ class BesStatusIconEventSink { const rect = service.textElement.getBoundingClientRect() const scrollbarWidth = service.textElement.offsetWidth - service.textElement.clientWidth - this.statusDiv.style.left = `${rect.right - 40 - scrollbarWidth}px` + this.statusDiv.style.left = `${rect.right - 40 - scrollbarWidth + window.scrollX}px` const scrollbarHeight = service.textElement.offsetHeight - service.textElement.clientHeight - this.statusDiv.style.top = `${rect.bottom - 30 - scrollbarHeight}px` + this.statusDiv.style.top = `${rect.bottom - 30 - scrollbarHeight + window.scrollY}px` } /**