Put back horizontal scrolling option again

DOM document is 2-dimensional! What applies to one dimension, may apply
to another too. Never assume we're scrolling texts vertically only.
This commit is contained in:
Simon Rozman 2024-06-10 15:01:10 +02:00
parent ba9a18705e
commit 4467fab2a8

View File

@ -319,7 +319,11 @@ class BesService {
this.statusDiv.style.left = `${ this.statusDiv.style.left = `${
rect.right - parentRect.left - 40 - scrollbarWidth rect.right - parentRect.left - 40 - scrollbarWidth
}px` }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`
} }
/** /**