Fix table position for perfdata without piecharts

refs #8334
This commit is contained in:
Matthias Jentsch 2015-06-02 17:30:24 +02:00
parent 1e8151bed3
commit 198834294f
2 changed files with 12 additions and 5 deletions

View File

@ -94,8 +94,14 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
if ($compact) {
return join('', $results);
} else {
$pieCharts = empty($table) ? '' : '<table class="perfdata">' . implode("\n", $table) . '</table>';
return $pieCharts;
if (empty($table)) {
return '';
}
return sprintf(
'<table class="perfdata %s">%s</table>',
isset($columns['']) ? 'perfdata-piecharts' : '',
implode("\n", $table)
);
}
}
}

View File

@ -142,10 +142,11 @@ table.objectstate tr.state.handled td.state {
table.perfdata {
min-width: 24em;
font-size: 0.9em;
position: relative;
top: 1.8em;
}
table.perfdata.perfdata-piecharts {
left: -2.6em;
margin-bottom: 1.8em;
position: relative;
}
table.perfdata th {