diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index 28a83699b..bd19bf04a 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -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; diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index 3bd33c839..4d6dcfcb1 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -400,3 +400,4 @@ !tiling-pattern-large-steps.pdf !issue11555.pdf !issue12337.pdf +!pr12564.pdf diff --git a/test/pdfs/pr12564.pdf b/test/pdfs/pr12564.pdf new file mode 100644 index 000000000..9bcd6998a Binary files /dev/null and b/test/pdfs/pr12564.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index 9282c0a31..372ee4876 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -4784,5 +4784,12 @@ "rounds": 2, "lastPage": 1, "type": "fbf" - } + }, + { "id": "pr12564", + "file": "pdfs/pr12564.pdf", + "md5": "24a19949a2541b960363832cf141f2f2", + "rounds": 1, + "type": "eq", + "annotations": true + } ]