From 1fbe092a48e4a40b9ac7b2c1c58b32fb622c5e33 Mon Sep 17 00:00:00 2001 From: Sancho Lerena <sancho.lerena@artica.es> Date: Fri, 10 Jun 2016 11:42:37 +0200 Subject: [PATCH] Show the gauge custom graphs with the defined height. If the user can choose the graph height he should be able to see how is used. --- pandora_console/operation/reporting/graph_viewer.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php index 1296e18619..64ca88e595 100644 --- a/pandora_console/operation/reporting/graph_viewer.php +++ b/pandora_console/operation/reporting/graph_viewer.php @@ -101,12 +101,9 @@ if ($view_graph) { $height = 50; if ($stacked == CUSTOM_GRAPH_GAUGE ){ - if ( $graph["height"] < 150 ) - $height = 150; - elseif( $graph["height"] >= 150 && $graph["height"] < 250 ) - $height = $graph["height"]; - elseif( $graph["height"] >= 250 ) - $height = 200; + // Use the defined graph height, that's why + // the user can setup graph height. + $height = $graph["height"]; } $name = $graph["name"];