From 6e1d234312a9ff755bfd3ba3cb41dbadbbe14f2c Mon Sep 17 00:00:00 2001 From: Louis Bailleul Date: Thu, 19 Nov 2015 13:58:17 +0000 Subject: [PATCH] Divide the width by the number of graphs in a row reduced by an arbitrary value to allow margins Only display one graph per line if width is < 800px --- html/includes/print-graphrow.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/html/includes/print-graphrow.inc.php b/html/includes/print-graphrow.inc.php index 5f8768e240..9d5c7d49eb 100644 --- a/html/includes/print-graphrow.inc.php +++ b/html/includes/print-graphrow.inc.php @@ -37,11 +37,13 @@ else { ); }//end if -if($_SESSION['screen_width']) { - if($_SESSION['screen_width'] > 800) { +if($_SESSION['screen_width']) +{ + if($_SESSION['screen_width'] >= 800) + { $graph_array['width'] = ($_SESSION['screen_width'] - 400 )/count($periods)+1; - } - else { + }else + { $graph_array['width'] = $_SESSION['screen_width'] - 155; } }