diff --git a/service2.js b/service2.js index c4f35e1..f7607ba 100644 --- a/service2.js +++ b/service2.js @@ -319,7 +319,11 @@ class BesService { this.statusDiv.style.left = `${ rect.right - parentRect.left - 40 - scrollbarWidth }px` - this.statusDiv.style.top = `${rect.bottom - parentRect.top - 30}px` + const scrollbarHeight = + this.hostElement.offsetHeight - this.hostElement.clientHeight + this.statusDiv.style.top = `${ + rect.bottom - parentRect.top - 30 - scrollbarHeight + }px` } /**