Prevent screen 'shaking' on invocation of a popup window
This commit is contained in:
parent
ccbd80dcb7
commit
5b13bd3d28
@ -900,9 +900,7 @@ class BesPopupEl extends HTMLElement {
|
|||||||
this.shadowRoot.innerHTML = `
|
this.shadowRoot.innerHTML = `
|
||||||
<style>
|
<style>
|
||||||
:host {
|
:host {
|
||||||
position: relative;
|
display: none;
|
||||||
display: inline-block;
|
|
||||||
z-index: -1
|
|
||||||
}
|
}
|
||||||
:host(.show){
|
:host(.show){
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
@ -981,6 +979,7 @@ class BesPopupEl extends HTMLElement {
|
|||||||
this.style.position = 'fixed'
|
this.style.position = 'fixed'
|
||||||
this.style.left = `${x}px`
|
this.style.left = `${x}px`
|
||||||
this.style.top = `${y}px`
|
this.style.top = `${y}px`
|
||||||
|
this.style.display = 'block'
|
||||||
|
|
||||||
const viewportWidth = window.innerWidth
|
const viewportWidth = window.innerWidth
|
||||||
const viewportHeight = window.innerHeight
|
const viewportHeight = window.innerHeight
|
||||||
|
Loading…
x
Reference in New Issue
Block a user