Fixed default size in EventHistory
Former-commit-id: 287ab0803651b6a417e6e28a948b55b0afe8a352
This commit is contained in:
parent
0a70e49792
commit
dcdb8c3aa9
|
@ -102,6 +102,12 @@ final class EventsHistory extends Item
|
|||
throw new \InvalidArgumentException('missing agent Id');
|
||||
}
|
||||
|
||||
// Default size.
|
||||
if ($data['width'] == 0 || $data['height'] == 0) {
|
||||
$data['width'] = 500;
|
||||
$data['height'] = 50;
|
||||
}
|
||||
|
||||
// Use the same HTML output as the old VC.
|
||||
$html = \graph_graphic_moduleevents(
|
||||
$agentId,
|
||||
|
|
Loading…
Reference in New Issue