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:
parent
03c6febc44
commit
315f450b01
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user