Re-calculate the area graph height with the legend height

(cherry picked from commit 2aa420e623)
This commit is contained in:
Alejandro Gallardo Escobar 2016-05-30 17:33:13 +02:00
parent 7ae4eaae5b
commit a08387d91f
1 changed files with 4 additions and 0 deletions

View File

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