mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Graph: fix for legends on the side and graph dimensions adaptation
This commit is contained in:
parent
61f6bd2c80
commit
f743288ce0
@ -17,6 +17,7 @@ function (_, crypto) {
|
||||
window_title_prefix : 'Grafana - ',
|
||||
panels : {
|
||||
'graph': { path: 'panels/graph' },
|
||||
'stats': { path: 'panels/stats' },
|
||||
'text': { path: 'panels/text' }
|
||||
},
|
||||
plugins : {},
|
||||
|
@ -207,6 +207,8 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
|
||||
}
|
||||
|
||||
if (shouldDelayDraw(panel)) {
|
||||
// temp fix for legends on the side, need to render twice to get dimensions right
|
||||
callPlot();
|
||||
setTimeout(callPlot, 50);
|
||||
legendSideLastValue = panel.legend.rightSide;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user