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

Set the viewport before navigating to the site #175

Merged

Conversation

rafaeldalsanto
Copy link
Contributor

@rafaeldalsanto rafaeldalsanto commented Apr 28, 2023

The docs of page.setViewport function say: "A lot of websites don't expect phones to change size, so you should set the viewport before navigating to the page".

We were setting the view port after navigating to the page and this was causing layout issues.

The docs of page.setViewport function say: "A lot of websites don't expect phones to change size, so you should set the viewport before navigating to the page".

We were setting the view port after navigating to the page and this was causing layout issues.
@rafaeldalsanto rafaeldalsanto self-assigned this Apr 28, 2023
@jklemm jklemm self-requested a review April 28, 2023 14:26
Copy link
Contributor

@jklemm jklemm left a comment

Choose a reason for hiding this comment

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

Very nice!

@rafaeldalsanto rafaeldalsanto merged commit 5db0f81 into master Apr 28, 2023
@rafaeldalsanto rafaeldalsanto deleted the improvement/resize-window-before-navigate-to-url branch April 28, 2023 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants