From 63306e0288c3dce7ad1e1a80b08b7c20f1f4ad3e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 3 May 2016 15:06:33 +0200 Subject: [PATCH] Fixed the size of radial dynamic networkmap in the dashboard. --- .../operation/agentes/networkmap.dinamic.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/operation/agentes/networkmap.dinamic.php b/pandora_console/operation/agentes/networkmap.dinamic.php index 24d3a9b223..398d59a309 100755 --- a/pandora_console/operation/agentes/networkmap.dinamic.php +++ b/pandora_console/operation/agentes/networkmap.dinamic.php @@ -57,6 +57,16 @@ require_once ('include/functions_networkmap.php'); $strict_user = db_get_value('strict_acl', 'tusuario', 'id_user', $config['id_user']); +global $width; +global $height; + +if (empty($width)) { + $width = 600; +} +if (empty($height)) { + $width = 650; +} + if ($activeTab == "radial_dynamic") { include_once("include/functions_graph.php"); @@ -70,7 +80,7 @@ if ($activeTab == "radial_dynamic") { if (!empty($module_group)) $filter['module_group'] = $module_group; - echo graph_monitor_wheel(600, 650, $filter, $strict_user); + echo graph_monitor_wheel($width, $height, $filter, $strict_user); echo ""; return;