Resolve issue with rendering popups across multiple active besService instances

This commit is contained in:
Aljaž Grilc 2024-03-15 07:52:49 +01:00
parent 82a86725eb
commit abfbfa7e79

View File

@ -797,4 +797,14 @@ window.onresize = () => {
})
}
window.onscroll = () => {
besServices.forEach(service => {
service.scrollPanel.style.top = -service.hostElement.scrollTop + 'px'
service.offsetTop = service.hostElement.scrollTop
setTimeout(() => {
service.repositionMistakes()
}, 100)
})
}
customElements.define('bes-popup-el', BesPopupEl)