From 0ce0d7a61c8add8d346cce88717b49726b00d7b5 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 2 Mar 2017 18:49:37 +0100 Subject: [PATCH] Fixed height on module graph when no resize is needed --- pandora_console/include/graphs/flot/pandora.flot.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index e2d6a24e13..ecd279d8d7 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -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);