Commit dbcd242b by Adrian Muraru Committed by GitHub

Updated phantomjs render script to take full height screenshots

parent 28ff8a67
......@@ -56,9 +56,15 @@
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,
left: bb.left,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment