1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #15125 from Snuffleupagus/FileAttachmentAnnotationElement-trigger

Fix the Popup-trigger for `FileAttachmentAnnotationElement` (PR 15036 follow-up)
This commit is contained in:
Jonas Jenwald 2022-07-04 11:00:24 +02:00 committed by GitHub
commit ca8b112e8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2400,8 +2400,7 @@ class FileAttachmentAnnotationElement extends AnnotationElement {
this.container.className = "fileAttachmentAnnotation";
const trigger = document.createElement("div");
trigger.style.height = this.container.style.height;
trigger.style.width = this.container.style.width;
trigger.className = "popupTriggerArea";
trigger.addEventListener("dblclick", this._download.bind(this));
if (