diff --git a/service.js b/service.js index aa3efd9..5525731 100644 --- a/service.js +++ b/service.js @@ -902,6 +902,7 @@ class BesPopupEl extends HTMLElement { } :host(.show){ z-index: 10; + display: block; } .popup-text { max-width: 160px; @@ -977,7 +978,6 @@ class BesPopupEl extends HTMLElement { this.style.position = 'fixed' this.style.left = `${x}px` this.style.top = `${y}px` - this.style.display = 'block' const viewportWidth = window.innerWidth const viewportHeight = window.innerHeight