Skip to content
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

Update the Annotation --zoom-factor CSS variable when PDFPageView is used standalone (PR 13868 follow-up) #13874

Conversation

Snuffleupagus
Copy link
Collaborator

Without this patch, when using PDFPageView directly[1] this CSS variable won't be updated and consequently things won't work as intended.
This is purposely implemented such that when a PDFPageView-instance is part of a viewer, we don't repeatedly set the CSS variable for every single page.


[1] See e.g. the "pageviewer" example in the examples/components/ folder.

… is used standalone (PR 13868 follow-up)

Without this patch, when using `PDFPageView` directly[1] this CSS variable won't be updated and consequently things won't work as intended.
This is purposely implemented such that when a `PDFPageView`-instance is part of a viewer, we don't repeatedly set the CSS variable for every single page.

---
[1] See e.g. the "pageviewer" example in the `examples/components/` folder.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/3a179d26daf1bf7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/3a179d26daf1bf7/output.txt

Total script time: 5.46 mins

Published

@timvandermeij timvandermeij merged commit 849bab9 into mozilla:master Aug 5, 2021
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the components-annotation-zoom-factor branch August 5, 2021 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants