#11542 fixed width module graph

This commit is contained in:
Daniel Cebrian 2023-06-12 14:17:12 +02:00
parent 28c08d34df
commit f04b700574
1 changed files with 2 additions and 2 deletions

View File

@ -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,