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

Store the rotation in the ViewHistory/PDFHistory (issue 5927) #8868

Merged
merged 3 commits into from
Sep 9, 2017
Merged

Store the rotation in the ViewHistory/PDFHistory (issue 5927) #8868

merged 3 commits into from
Sep 9, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Sep 4, 2017

Please note that compared to previous attempts at fixing this, the commits in this PR adds rotation support to the history implementation as well.

Fixes #5927.

@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

This changes both `PDFViewer` and `PDFThumbnailViewer` to return early in the `pagesRotation` setters if the rotation doesn't change.
It also fixes an existing issue, in `PDFViewer`, that would cause errors if the rotation changes *before* the scale has been set to a non-default value.

Finally, in preparation for subsequent patches, it also refactors the rotation code in `web/app.js` to update the thumbnails and trigger rendering with the new `rotationchanging` event.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

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

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Linux m4)


Success

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

Total script time: 2.28 mins

Published

@timvandermeij
Copy link
Contributor

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/c0b5351aeadf25b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Windows)


Received

Command cmd_unittest from @timvandermeij received. Current queue size: 1

Live output at: http://54.215.176.217:8877/968dbe3d1721722/output.txt

@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@mozilla mozilla deleted a comment from pdfjsbot Sep 9, 2017
@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Linux m4)


Success

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

Total script time: 2.56 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Sep 9, 2017

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/968dbe3d1721722/output.txt

Total script time: 12.82 mins

  • Unit Tests: Passed

@timvandermeij timvandermeij merged commit e6d05be into mozilla:master Sep 9, 2017
@timvandermeij
Copy link
Contributor

Nice to have this; thank you!

@Snuffleupagus Snuffleupagus deleted the save-rotation branch September 9, 2017 17:51
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Store the rotation in the `ViewHistory`/`PDFHistory` (issue 5927)
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.

Viewer doesn't remember last rotation angle
3 participants