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 (