Updated phantomjs render script to take full height screenshots

This commit is contained in:
Adrian Muraru
2018-09-19 18:43:33 +03:00
committed by GitHub
parent 28ff8a6716
commit dbcd242b09

View File

@@ -56,8 +56,14 @@
if (panelsRendered || totalWaitMs > timeoutMs) {
var bb = page.evaluate(function () {
return document.getElementsByClassName("main-view")[0].getBoundingClientRect();
return document.getElementsByClassName("dashboard-container")[0].getBoundingClientRect();
});
// reset viewport to render full page
page.viewportSize = {
width: bb.width,
height: bb.height
};
page.clipRect = {
top: bb.top,