mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
#11542 fixed width module graph
This commit is contained in:
parent
28c08d34df
commit
f04b700574
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user