Updated phantomjs render script to take full height screenshots

pull/13352/head
Adrian Muraru 7 years ago committed by GitHub
parent 28ff8a6716
commit dbcd242b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/phantomjs/render.js

@ -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,

Loading…
Cancel
Save