mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Only update resolution if session variables don't exist
Tune print-graphrow.inc.php to avoid last graph going to a new line in certain cases
This commit is contained in:
@@ -39,7 +39,7 @@ else {
|
||||
|
||||
if($_SESSION['screen_width']) {
|
||||
if($_SESSION['screen_width'] >= 800) {
|
||||
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
|
||||
$graph_array['width'] = ($_SESSION['screen_width'] - 420 )/count($periods)+1;
|
||||
}else {
|
||||
$graph_array['width'] = $_SESSION['screen_width'] - 155;
|
||||
}
|
||||
|
@@ -184,6 +184,10 @@ else {
|
||||
|
||||
<?php
|
||||
|
||||
if(empty($_SESSION['screen_width']) && empty($_SESSION['screen_height'])) {
|
||||
echo "<script>updateResolution();</script>";
|
||||
}
|
||||
|
||||
if ((isset($vars['bare']) && $vars['bare'] != "yes") || !isset($vars['bare'])) {
|
||||
if ($_SESSION['authenticated']) {
|
||||
require 'includes/print-menubar.php';
|
||||
|
@@ -123,7 +123,6 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
|
||||
updateResolution();
|
||||
});
|
||||
|
||||
function submitCustomRange(frmdata) {
|
||||
|
Reference in New Issue
Block a user