Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
V2.5.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 19, 2013
1 parent a48fa09 commit 927aacc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions renderer.php
Expand Up @@ -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;
Expand Down

0 comments on commit 927aacc

Please sign in to comment.