mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
Make graph page use session variable to compute graph size
This commit is contained in:
parent
b1fd1b3137
commit
9ad6763c86
@ -111,6 +111,14 @@ else {
|
|||||||
$graph_array['height'] = "300";
|
$graph_array['height'] = "300";
|
||||||
$graph_array['width'] = $graph_width;
|
$graph_array['width'] = $graph_width;
|
||||||
|
|
||||||
|
if($_SESSION['screen_width']) {
|
||||||
|
$graph_array['width'] = ($_SESSION['screen_width'] - ($_SESSION['screen_width']/12));
|
||||||
|
}
|
||||||
|
|
||||||
|
if($_SESSION['screen_height']) {
|
||||||
|
$graph_array['height'] = ($_SESSION['screen_height'] - ($_SESSION['screen_height']/2));
|
||||||
|
}
|
||||||
|
|
||||||
echo("<hr />");
|
echo("<hr />");
|
||||||
|
|
||||||
include_once 'includes/print-date-selector.inc.php';
|
include_once 'includes/print-date-selector.inc.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user