mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12564 from hakubo/patch-1
Make sure that Popup is rendered next to trigger for textAnnotation
This commit is contained in:
commit
be0794cb08
4 changed files with 10 additions and 1 deletions
|
@ -847,6 +847,7 @@ class PopupAnnotationElement extends AnnotationElement {
|
|||
|
||||
this.container.style.transformOrigin = `${-popupLeft}px ${-popupTop}px`;
|
||||
this.container.style.left = `${popupLeft}px`;
|
||||
this.container.style.top = `${popupTop}px`;
|
||||
|
||||
this.container.appendChild(popup.render());
|
||||
return this.container;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue