Fix the Popup-trigger for FileAttachmentAnnotationElement (PR 15036 follow-up)

After the changes in PR 15036, the trigger-element created in `FileAttachmentAnnotationElement.render` is now too small. This can be fixed by using the same approach as in PR 15065, and the patch can be tested using the `annotation-fileattachment.pdf` document in the test-suite.
This commit is contained in:
Jonas Jenwald 2022-07-04 09:33:27 +02:00
parent 03c6febc44
commit 315f450b01

View File

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