Make graph page use session variable to compute graph size

This commit is contained in:
Louis Bailleul
2015-11-20 14:39:19 +00:00
parent ce8e79c63a
commit 961a9fff4b
2 changed files with 5 additions and 14 deletions

View File

@@ -39,8 +39,9 @@ else {
if($_SESSION['screen_width']) {
if($_SESSION['screen_width'] >= 800) {
$graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1;
}else {
$graph_array['width'] = ($_SESSION['screen_width'] - 420 )/count($periods)+1;
}
else {
$graph_array['width'] = $_SESSION['screen_width'] - 155;
}
}