mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Graph: fixed PNG rendering of panels with legend table to the right, #2185
This commit is contained in:
Vendored
+4
-2
@@ -34,10 +34,12 @@ page.open(params.url, function (status) {
|
||||
|
||||
function checkIsReady() {
|
||||
var canvas = page.evaluate(function() {
|
||||
return $('canvas').length > 0;
|
||||
var body = angular.element(document.body); // 1
|
||||
var rootScope = body.scope().$root;
|
||||
return rootScope.performance.panelsRendered > 0;
|
||||
});
|
||||
|
||||
if (canvas || tries === 100) {
|
||||
if (canvas || tries === 1000) {
|
||||
page.render(params.png);
|
||||
phantom.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user