Re-calculate the area graph height with the legend height

This commit is contained in:
Alejandro Gallardo Escobar 2016-05-30 17:33:13 +02:00
parent 90427855fb
commit 2aa420e623
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