mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
[Console] Adjustments to the graph popup size
This commit is contained in:
parent
0de711e633
commit
279a864d82
@ -207,9 +207,8 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
|
|||||||
if ($zoom > 1) {
|
if ($zoom > 1) {
|
||||||
$height = $height * ($zoom / 2.1);
|
$height = $height * ($zoom / 2.1);
|
||||||
$width = $width * ($zoom / 1.4);
|
$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
|
// Build date
|
||||||
$date = strtotime("$start_date $start_time");
|
$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
|
// log4x doesnt support flash yet
|
||||||
//
|
//
|
||||||
if ($config['flash_charts'] == 1)
|
if ($config['flash_charts'] == 1)
|
||||||
echo '<div style="margin-left: 100px; padding-top: 10px;">';
|
echo '<div style="margin-left: 65px; padding-top: 10px;">';
|
||||||
else
|
else
|
||||||
echo '<div style="margin-left: 50px; padding-top: 10px;">';
|
echo '<div style="margin-left: 20px; padding-top: 10px;">';
|
||||||
|
|
||||||
switch ($graph_type) {
|
switch ($graph_type) {
|
||||||
case 'boolean':
|
case 'boolean':
|
||||||
@ -517,10 +516,10 @@ ui_include_time_picker(true);
|
|||||||
return false;
|
return false;
|
||||||
}).click(function() {
|
}).click(function() {
|
||||||
if (show_overview) {
|
if (show_overview) {
|
||||||
window.resizeTo(width_window + 20, height_window + 50);
|
window.resizeTo(width_window + 25, height_window);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.resizeTo(width_window + 20, height_window + 200);
|
window.resizeTo(width_window + 25, height_window + 120);
|
||||||
}
|
}
|
||||||
show_overview = !show_overview;
|
show_overview = !show_overview;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user