From a62067a5b9dc0218e05d3be0ffaf9bf182dc0781 Mon Sep 17 00:00:00 2001 From: Louis Bailleul Date: Wed, 25 Nov 2015 17:27:24 +0000 Subject: [PATCH] Rework the padding and ratio to better fit the lazy loading --- html/includes/print-graphrow.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/html/includes/print-graphrow.inc.php b/html/includes/print-graphrow.inc.php index 90fbd2fca..26d51a2e2 100644 --- a/html/includes/print-graphrow.inc.php +++ b/html/includes/print-graphrow.inc.php @@ -39,10 +39,10 @@ else { if($_SESSION['screen_width']) { if($_SESSION['screen_width'] > 800) { - $graph_array['width'] = round(($_SESSION['screen_width'] - 430 )/count($periods)+1,0); + $graph_array['width'] = round(($_SESSION['screen_width'] - 90 )/count($periods)+1,0); } else { - $graph_array['width'] = $_SESSION['screen_width'] - 155; + $graph_array['width'] = $_SESSION['screen_width'] - 70; } } @@ -51,11 +51,11 @@ if( $graph_array['width'] < 215) { } if($_SESSION['screen_height']) { - if($_SESSION['screen_width'] > 960) { - $graph_array['height'] = round(($_SESSION['screen_height'] - 250)/5,0); + if($_SESSION['screen_height'] > 960) { + $graph_array['height'] = round(($_SESSION['screen_height'] - 250)/4,0); } else { - $graph_array['height'] = round(($_SESSION['screen_height'] - 250)/2,0); + $graph_array['height'] = round(($_SESSION['screen_height'] - 250)/3,0); } }