You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected result?
webpage should respond to window resizes by the user just like normal Google Chrome app
What happens instead?
webpage doesn't respond to any window resize by the user
Further info:
I have researched github issues, stack overflow and found help. However after updating to Chrome 71 since yesterday, nothing works. I can't rely on CDP session if it would break from Chrome 70 to Chrome 71.
Setting --window-size launch argument and page.setViewport does work for initial launch however, what to do when user manually resizes after launch.
In chrome 71 in --app mode, page._client.send('Emulation.clearDeviceMetricsOverride'); doesn't work
Why is the experience different from normal Google Chrome app?
The text was updated successfully, but these errors were encountered:
prabh-62
changed the title
Puppeteer launched Chrome window doesn't resize on window resize
Puppeteer launched Chrome window doesn't resize viewport on window resize
Dec 18, 2018
@prabh-62 Puppeteer emulates viewport by default, so window resizing doesn't affect viewport.
If you don't like the behavior and want viewport to match the window size, you should launch chrome with defaultViewport: null option.
Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
Please include code that reproduces the issue.
What is the expected result?
webpage should respond to window resizes by the user just like normal Google Chrome app
What happens instead?
webpage doesn't respond to any window resize by the user
Further info:
--app
mode, page._client.send('Emulation.clearDeviceMetricsOverride'); doesn't workThe text was updated successfully, but these errors were encountered: