diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 1899cd416c..561b170835 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -139,7 +139,13 @@ function flot_area_graph( } // Parent layer. - $return = "
"; + if (strpos($params['width'], '%') === false) { + $width = 'width: '.$params['width'].'px;'; + } else { + $width = 'width: '.$params['width'].';'; + } + + $return = "
"; if ($params['title'] === true && empty($params['title']) === false) { $return .= '

'.$params['title'].'

';