Fixed height on module graph when no resize is needed

This commit is contained in:
fermin831 2017-03-02 18:49:37 +01:00
parent ee932946cc
commit 0ce0d7a61c
1 changed files with 5 additions and 0 deletions

View File

@ -1946,6 +1946,11 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
$.extend(true, {}, options, {
yaxis: {max: maxim_data + (maxim_data*0.5)},
}));
} else {
plot = $.plot($('#' + graph_id), data_base,
$.extend(true, {}, options, {
yaxis: {max: plot.getAxes().yaxis.max},
}));
}
datas = add_threshold (data_base, threshold_data, plot.getAxes().yaxis.min, plot.getAxes().yaxis.max,
yellow_threshold, red_threshold, extremes, red_up);