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

Prevent "offsetParent is not set -- cannot scroll" errors when the viewer loads in e.g. a hidden <iframe> #11129

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Besides avoiding errors during loading, this also ensures that the document will be correctly scrolled/zoomed into view once the viewer becomes visible.
This "new" behaviour was always intended, see PR #2613, however various re-factoring over the years seem to have broken this (and I'm probably at least somewhat responsible for that).

…ewer loads in e.g. a hidden <iframe>

Besides avoiding errors during loading, this also ensures that the document will be correctly scrolled/zoomed into view once the viewer becomes visible.
This "new" behaviour was always intended, see PR 2613, however various re-factoring over the years seem to have broken this (and I'm probably at least somewhat responsible for that).
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2019

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/9e0af5562d1521f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/9e0af5562d1521f/output.txt

Total script time: 1.74 mins

Published

@timvandermeij timvandermeij merged commit 4fa60f0 into mozilla:master Sep 9, 2019
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the animationStarted-setInitialView branch September 9, 2019 22:29
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