From 927aacc79a47e7c5f42270979fc7aef2ad21b7fb Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Mon, 19 Aug 2013 19:22:25 +0100 Subject: [PATCH] V2.5.1.2 --- renderer.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/renderer.php b/renderer.php index 06ee987..8eb9481 100644 --- a/renderer.php +++ b/renderer.php @@ -493,8 +493,12 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames } $this->cncolumnwidth = 100 / $this->cnsettings['columns']; - $this->cncolumnwidth -= 1; // Allow for the padding in %. - $this->cncolumnpadding = 2; // px + if ($this->cnsettings['columnorientation'] == 2) { // Horizontal column layout. + $this->cncolumnwidth -= 1; + } else { + $this->cncolumnwidth -= 0.2; + } + $this->cncolumnpadding = 0; // px } elseif ($this->cnsettings['columns'] < 1) { // Default in cnconfig.php (and reset in database) or database has been changed incorrectly. $this->cnsettings['columns'] = 1;