From 8d4c65b8e82ed1b40647ead797fe9ccc4929ee3e Mon Sep 17 00:00:00 2001 From: pblasquez Date: Tue, 26 Apr 2016 12:43:49 -0700 Subject: [PATCH] Revert "Make minimum height configurable" This reverts commit 292fe5901b79d3dee84085074a8478cd62291dbf. --- html/pages/graphs.inc.php | 4 ++-- includes/defaults.inc.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/html/pages/graphs.inc.php b/html/pages/graphs.inc.php index c802bc011a..dcef1cb0cb 100644 --- a/html/pages/graphs.inc.php +++ b/html/pages/graphs.inc.php @@ -108,7 +108,7 @@ else { echo(''); $graph_array = $vars; - $graph_array['height'] = $config['min_graph_height']; + $graph_array['height'] = "300"; $graph_array['width'] = $graph_width; if($_SESSION['screen_width']) { @@ -125,7 +125,7 @@ else { $graph_array['height'] = ($_SESSION['screen_height'] - ($_SESSION['screen_height']/2)); } else { - $graph_array['height'] = max($graph_array['height'],($_SESSION['screen_height'] - ($_SESSION['screen_height']/1.5))); + $graph_array['height'] = ($_SESSION['screen_height'] - ($_SESSION['screen_height']/1.5)); } } diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 5908ae9a23..c99bfd6f63 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -124,7 +124,6 @@ $config['top_ports'] = 1; // This enables the top X ports box $config['top_devices'] = 1; // This enables the top X devices box -$config['min_graph_height'] = 300; $config['page_title_prefix'] = ''; $config['page_title_suffix'] = $config['project_name']; $config['timestamp_format'] = 'd-m-Y H:i:s';