Fixed default size in EventHistory

Former-commit-id: 287ab0803651b6a417e6e28a948b55b0afe8a352
This commit is contained in:
Daniel Maya 2019-04-24 11:15:11 +02:00
parent 0a70e49792
commit dcdb8c3aa9
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,12 @@ final class EventsHistory extends Item
throw new \InvalidArgumentException('missing agent Id'); 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. // Use the same HTML output as the old VC.
$html = \graph_graphic_moduleevents( $html = \graph_graphic_moduleevents(
$agentId, $agentId,