[Console] Adjustments to the graph popup size

This commit is contained in:
Alejandro Gallardo Escobar 2017-11-23 12:53:54 +01:00
parent 0de711e633
commit 279a864d82
1 changed files with 5 additions and 6 deletions

View File

@ -207,9 +207,8 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
if ($zoom > 1) {
$height = $height * ($zoom / 2.1);
$width = $width * ($zoom / 1.4);
echo "<script type='text/javascript'>window.resizeTo($width + 80, $height + 120);</script>";
}
echo "<script type='text/javascript'>window.resizeTo($width + 190, $height + 260);</script>";
// Build date
$date = strtotime("$start_date $start_time");
@ -225,9 +224,9 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
// log4x doesnt support flash yet
//
if ($config['flash_charts'] == 1)
echo '<div style="margin-left: 100px; padding-top: 10px;">';
echo '<div style="margin-left: 65px; padding-top: 10px;">';
else
echo '<div style="margin-left: 50px; padding-top: 10px;">';
echo '<div style="margin-left: 20px; padding-top: 10px;">';
switch ($graph_type) {
case 'boolean':
@ -517,10 +516,10 @@ ui_include_time_picker(true);
return false;
}).click(function() {
if (show_overview) {
window.resizeTo(width_window + 20, height_window + 50);
window.resizeTo(width_window + 25, height_window);
}
else {
window.resizeTo(width_window + 20, height_window + 200);
window.resizeTo(width_window + 25, height_window + 120);
}
show_overview = !show_overview;