From f04b700574ca122558dc35c3a400b4c4709fbd60 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 12 Jun 2023 14:17:12 +0200 Subject: [PATCH] #11542 fixed width module graph --- .../include/lib/Dashboard/Widgets/single_graph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php index 09f1c15a16..facce0a161 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/single_graph.php +++ b/pandora_console/include/lib/Dashboard/Widgets/single_graph.php @@ -397,7 +397,7 @@ class SingleGraphWidget extends Widget $module_name = \modules_get_agentmodule_name($this->values['moduleId']); $units_name = \modules_get_unit($this->values['moduleId']); - $trickHight = 10; + $trickHight = 0; if ($this->values['showLegend'] === 1) { // Needed for legend. $trickHight = 40; @@ -405,7 +405,7 @@ class SingleGraphWidget extends Widget $params = [ 'agent_module_id' => $this->values['moduleId'], - 'width' => ((int) $size['width'] - 5), + 'width' => '100%', 'height' => ((int) $size['height'] - $trickHight), 'period' => $this->values['period'], 'title' => $module_name,