mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Re-calculate the area graph height with the legend height
This commit is contained in:
parent
90427855fb
commit
2aa420e623
@ -1524,6 +1524,10 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||
|
||||
var plot = $.plot($('#' + graph_id), datas, options);
|
||||
|
||||
// Re-calculate the graph height with the legend height
|
||||
$('#'+graph_id).css('height',
|
||||
$('#'+graph_id).height() - $('#legend_'+graph_id).height());
|
||||
|
||||
if (vconsole) {
|
||||
var myCanvas = plot.getCanvas();
|
||||
plot.setupGrid(); // redraw plot to new size
|
||||
|
Loading…
x
Reference in New Issue
Block a user