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

Add a helper method for _getVisiblePages, in BaseViewer, for the case where only a single page is displayed in the viewer #10190

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

Snuffleupagus
Copy link
Collaborator

This is another small piece of clean-up, split off from PR #10183.

This is relevant for e.g. PDFSinglePageViewer, and PDFViewer with Presentation Mode active.
By moving this code to a helper method in BaseViewer, it's thus possible to reduce the amount of duplicate code that currently needed in PDFViewer and PDFSinglePageViewer.

…case where only a single page is displayed in the viewer

This is relevant for e.g. `PDFSinglePageViewer`, and `PDFViewer` with Presentation Mode active.
By moving this code to a helper method in `BaseViewer`, it's thus possible to reduce the amount of duplicate code that currently needed in `PDFViewer` and `PDFSinglePageViewer`.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

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/d69a91c5272397d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/d69a91c5272397d/output.txt

Total script time: 2.92 mins

Published

@timvandermeij timvandermeij merged commit 42b7bb4 into mozilla:master Oct 29, 2018
@timvandermeij
Copy link
Contributor

Good find!

@Snuffleupagus Snuffleupagus deleted the _getCurrentVisiblePage branch October 29, 2018 22:36
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