Merge branch 'ent-11542-widget-module-graph-no-ocupa-el-area-de-widget-completo' into 'develop'
Ent 11542 Widget "Module graph" no ocupa el area de widget completo See merge request artica/pandorafms!6082
This commit is contained in:
commit
03188d1b10
|
@ -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…
Reference in New Issue