mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Updated phantomjs render script to take full height screenshots
This commit is contained in:
parent
28ff8a6716
commit
dbcd242b09
@ -56,8 +56,14 @@
|
|||||||
|
|
||||||
if (panelsRendered || totalWaitMs > timeoutMs) {
|
if (panelsRendered || totalWaitMs > timeoutMs) {
|
||||||
var bb = page.evaluate(function () {
|
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 = {
|
page.clipRect = {
|
||||||
top: bb.top,
|
top: bb.top,
|
||||||
|
Loading…
Reference in New Issue
Block a user