mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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:
commit
ca8b112e8c
1 changed files with 1 additions and 2 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue