Set minigraph image dimensions in HTML so graph popups will have correct dimensions when the graph images haven't been loaded yet

This commit is contained in:
Nils Steinger
2015-09-21 22:00:55 +02:00
parent f3f0eee7e1
commit 7eec149309
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ function get_percentage_colours($percentage) {
function generate_minigraph_image($device, $start, $end, $type, $legend='no', $width=275, $height=100, $sep='&', $class='minigraph-image',$absolute_size=0) {
return '<img class="'.$class.'" src="graph.php?'.implode($sep, array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend", "absolute=$absolute_size")).'">';
return '<img class="'.$class.'" width="'.$width.'" height="'.$height.'" src="graph.php?'.implode($sep, array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend", "absolute=$absolute_size")).'">';
}//end generate_minigraph_image()