Fix popup visibility issue in CKEditor

This commit is contained in:
Aljaž Grilc 2024-04-11 11:49:04 +02:00
parent 6aaa8c4472
commit 37855374bb

View File

@ -902,6 +902,7 @@ class BesPopupEl extends HTMLElement {
} }
:host(.show){ :host(.show){
z-index: 10; z-index: 10;
display: block;
} }
.popup-text { .popup-text {
max-width: 160px; max-width: 160px;
@ -977,7 +978,6 @@ 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