Fix status icon positioning

This commit is contained in:
Simon Rozman 2025-02-27 14:49:19 +01:00
parent 20e24b4e3a
commit 156e6302e6

View File

@ -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`
}
/**