Chromeless: Changing viewport doesn't work

Created on 28 Jul 2017  路  3Comments  路  Source: prisma-archive/chromeless

API bug

Most helpful comment

for anyone running into this in the mean time, this method works:

const chromeless = new Chromeless({ remote: true, viewport: {width: 500, height: 500} })

All 3 comments

+1

for anyone running into this in the mean time, this method works:

const chromeless = new Chromeless({ remote: true, viewport: {width: 500, height: 500} })

It's due to the protocol not exposing a great way to change size. Responsive sites seems to get updates when you forceViewport, but other sites don't. I've tried a few different strategies, but it's something we'll likely need at a lower level in Chrome, or find some JavaScript "hack" to trigger it...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maruidea picture maruidea  路  6Comments

Corefinder89 picture Corefinder89  路  4Comments

adieuadieu picture adieuadieu  路  3Comments

seangransee picture seangransee  路  5Comments

eitansela picture eitansela  路  4Comments