RRD graphs are obnoxiously large #55

Removed width=100% and set inline style="max-width:100%; height:auto"
This commit is contained in:
cbasolutions 2015-07-03 08:36:53 -04:00
parent 7566fa095c
commit 1610acc897

View File

@ -514,7 +514,7 @@ function get_dates($curperiod, $graph) {
$id = preg_replace('/\./', '_', $id);
$img_date = date('YmdGis'); /* Add a way to let the browser know we have refreshed the image */
echo "<tr><td colspan=\"100%\" class=\"list\">\n";
echo "<img border=\"0\" width=\"100%;\" name=\"{$id}\"";
echo "<img border=\"0\" style=\"max-width:100%; height:auto\" name=\"{$id}\"";
echo "id=\"{$id}\" alt=\"$prettydb Graph\" ";
echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n";
echo "<br /><hr /><br />\n";
@ -583,7 +583,7 @@ function get_dates($curperiod, $graph) {
$start = $dates['start'];
$end = $dates['end'];
echo "<tr><td colspan=\"100%\" class=\"list\">\n";
echo "<img border=\"0\" width=\"100%;\" name=\"{$id}\" ";
echo "<img border=\"0\" style=\"max-width:100%; height:auto\" name=\"{$id}\" ";
echo "id=\"{$id}\" alt=\"$prettydb Graph\" ";
echo "src=\"status_rrd_graph_img.php?start={$start}&amp;end={$end}&amp;database={$curdatabase}&amp;style={$curstyle}&amp;graph={$graph}-{$img_date}\" />\n";
echo "<br /><hr /><br />\n";