Prevent screen 'shaking' on invocation of a popup window
This commit is contained in:
		| @@ -900,9 +900,7 @@ class BesPopupEl extends HTMLElement { | ||||
|     this.shadowRoot.innerHTML = ` | ||||
|       <style> | ||||
|         :host { | ||||
|           position: relative; | ||||
|           display: inline-block; | ||||
|           z-index: -1 | ||||
|           display: none; | ||||
|         } | ||||
|         :host(.show){ | ||||
|           z-index: 10; | ||||
| @@ -981,6 +979,7 @@ 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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user