Skip to content

Commit d44d0ec

Browse files
calixtemanrousek
authored andcommitted
Popup trigger area must filled its parent (fix mozilla#15063)
1 parent df4e9d1 commit d44d0ec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/display/annotation_layer.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,7 @@ class AnnotationElement {
418418
// If no trigger element is specified, create it.
419419
if (!trigger) {
420420
trigger = document.createElement("div");
421-
trigger.style.height = container.style.height;
422-
trigger.style.width = container.style.width;
421+
trigger.className = "popupTriggerArea";
423422
container.append(trigger);
424423
}
425424

web/annotation_layer_builder.css

+5
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@
205205
appearance: none;
206206
}
207207

208+
.annotationLayer .popupTriggerArea {
209+
height: 100%;
210+
width: 100%;
211+
}
212+
208213
.annotationLayer .popupWrapper {
209214
position: absolute;
210215
font-size: calc(9px * var(--scale-factor));

0 commit comments

Comments
 (0)