vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
576 stars 102 forks source link

fudge vh css units #76

Open graingert opened 7 years ago

graingert commented 7 years ago

For sites that use vh units in css: https://manet.herokuapp.com/?url=https%3A%2F%2Fhungryhouse.co.uk%2F&selectorCrop=false they take up the whole view of the page.

fudge it to be about 1/3rd of the total height, or allow.

Messing with viewport and cliprect doesn't work, because phantom only renders in the viewport:

https://manet.herokuapp.com/?url=hungryhouse.com&width=1920&height=500&clipRect=0%2C0%2C1920%2C4000&selectorCrop=false

vbauer commented 7 years ago

@graingert Could you try to render using slimerjs engine? It looks like a problem with PhantomJs