Fix status icon positioning
This commit is contained in:
parent
20e24b4e3a
commit
156e6302e6
@ -59,10 +59,10 @@ class BesStatusIconEventSink {
|
|||||||
const rect = service.textElement.getBoundingClientRect()
|
const rect = service.textElement.getBoundingClientRect()
|
||||||
const scrollbarWidth =
|
const scrollbarWidth =
|
||||||
service.textElement.offsetWidth - service.textElement.clientWidth
|
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 =
|
const scrollbarHeight =
|
||||||
service.textElement.offsetHeight - service.textElement.clientHeight
|
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`
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user