-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Annotation does not scale on zooming after resize #15571
Comments
Interesting bug... |
The dimensions of an added ink annotation are in pdf.js/src/display/editor/ink.js Line 697 in 06599f4
Consequently, from time to time, the div has some dimensions in px instead of % and finally it isn't correctly rescaled on zoom change.
|
I filed a bug in Firefox: |
@calixteman The patch does fix the bug of the first kind, but it still does not fix the second one. Are they both due to bug 1795536? But it seems to be an edge case to add too many workarounds.. anyway, my 2c. |
@shivaprsd, I missed the second issue. |
@calixteman I thought both were due to the same bug, so did not want to open a duplicate issue. Good that you found the causes. |
Attach (recommended) or Link to PDF file here: Any
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The annotation should scale with the page.
What went wrong? (add screenshot)
Did not scale.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): N/A
The text was updated successfully, but these errors were encountered: