mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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']);
|
$module_name = \modules_get_agentmodule_name($this->values['moduleId']);
|
||||||
$units_name = \modules_get_unit($this->values['moduleId']);
|
$units_name = \modules_get_unit($this->values['moduleId']);
|
||||||
|
|
||||||
$trickHight = 10;
|
$trickHight = 0;
|
||||||
if ($this->values['showLegend'] === 1) {
|
if ($this->values['showLegend'] === 1) {
|
||||||
// Needed for legend.
|
// Needed for legend.
|
||||||
$trickHight = 40;
|
$trickHight = 40;
|
||||||
@ -405,7 +405,7 @@ class SingleGraphWidget extends Widget
|
|||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
'agent_module_id' => $this->values['moduleId'],
|
'agent_module_id' => $this->values['moduleId'],
|
||||||
'width' => ((int) $size['width'] - 5),
|
'width' => '100%',
|
||||||
'height' => ((int) $size['height'] - $trickHight),
|
'height' => ((int) $size['height'] - $trickHight),
|
||||||
'period' => $this->values['period'],
|
'period' => $this->values['period'],
|
||||||
'title' => $module_name,
|
'title' => $module_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user