mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed minor error graph sparse width
This commit is contained in:
parent
a645f3c0b2
commit
7dc759f3ac
@ -139,7 +139,13 @@ function flot_area_graph(
|
||||
}
|
||||
|
||||
// Parent layer.
|
||||
$return = "<div class='parent_graph' style='width: ".$params['width'].'px;'.$background_style."'>";
|
||||
if (strpos($params['width'], '%') === false) {
|
||||
$width = 'width: '.$params['width'].'px;';
|
||||
} else {
|
||||
$width = 'width: '.$params['width'].';';
|
||||
}
|
||||
|
||||
$return = "<div class='parent_graph' style='".$width.$background_style."'>";
|
||||
|
||||
if ($params['title'] === true && empty($params['title']) === false) {
|
||||
$return .= '<p style="text-align:center;">'.$params['title'].'</p>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user