Merge pull request #15065 from calixteman/15063

Popup trigger area must filled its parent (fix #15063)
This commit is contained in:
Jonas Jenwald 2022-06-20 09:26:19 +02:00 committed by GitHub
commit ef6142a6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -418,8 +418,7 @@ class AnnotationElement {
// If no trigger element is specified, create it.
if (!trigger) {
trigger = document.createElement("div");
trigger.style.height = container.style.height;
trigger.style.width = container.style.width;
trigger.className = "popupTriggerArea";
container.append(trigger);
}

View File

@ -205,6 +205,11 @@
appearance: none;
}
.annotationLayer .popupTriggerArea {
height: 100%;
width: 100%;
}
.annotationLayer .popupWrapper {
position: absolute;
font-size: calc(9px * var(--scale-factor));