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

Enable full screen mode for PDF files #57

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

danxuliu
Copy link
Member

The PDF viewer provides a Full screen button when it detects that the browser supports the full screen mode and that the PDF is inside an element that can be displayed full screen. Therefore, as the PDF viewer is shown inside an iframe element its allowfullscreen attribute must be set to true.

Note that the Full screen button was already shown in Chromium before this pull request (although, unless I am missing something, it should not have been shown); now the button is available too in Firefox. I have not tested other browsers.

The PDF viewer provides a "Full screen" button when it detects that the
browser supports the full screen mode and that the PDF is inside an
element that can be displayed full screen. Therefore, as the PDF viewer
is shown inside an "iframe" element its "allowfullscreen" attribute must
be set to "true".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke MorrisJobke merged commit d7cb8c7 into master Feb 26, 2018
@MorrisJobke MorrisJobke deleted the enable-fullscreen-mode-for-pdf-files branch February 26, 2018 08:36
@MorrisJobke
Copy link
Member

@danxuliu Mind to do the backport? So we have this fixed in 13.0.1 as well?

@danxuliu
Copy link
Member Author

danxuliu commented Mar 9, 2018

@MorrisJobke Done; as it was straightforward to do it I also backported it to stable12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants