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

[GENERIC viewer] Skip the iframe-case when checking if the container div, on BaseViewer-instances, is absolutely positioned (PR 12354 follow-up) #12972

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

Given that getComputedStyle only works on visible elements, the result of PR #12354 is that if the viewer is placed in a hidden iframe the viewer will now be broken. This obviously wasn't the intention of that PR, hence I believe that we should limit the position: absolute; check slightly to avoid this.

…er` div, on `BaseViewer`-instances, is absolutely positioned (PR 12354 follow-up)

Given that `getComputedStyle` only works on visible elements, the result of PR 12354 is that if the viewer is placed in a *hidden* `iframe` the viewer will now be broken. This obviously wasn't the intention of that PR, hence I believe that we should limit the `position: absolute;` check slightly to avoid this.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Feb 9, 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/ef8532e80700bea/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Feb 9, 2021

From: Bot.io (Linux m4)


Success

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

Total script time: 4.33 mins

Published

@timvandermeij timvandermeij merged commit 3a2c259 into mozilla:master Feb 9, 2021
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the pr-12354-followup branch February 9, 2021 23:30
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