Skip to content

Commit

Permalink
V2.5.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Aug 19, 2013
1 parent 28b4804 commit 20ea56a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions renderer.php
Expand Up @@ -634,8 +634,12 @@ public function print_multiple_section_page($course, $sections, $mods, $modnames
}

$this->tccolumnwidth = 100 / $this->tcsettings['layoutcolumns'];
$this->tccolumnwidth -= 1; // Allow for the padding in %.
$this->tccolumnpadding = 2; // 'px'.
if ($this->tcsettings['layoutcolumnorientation'] == 2) { // Horizontal column layout.
$this->tccolumnwidth -= 1;
} else {
$this->tccolumnwidth -= 0.2;
}
$this->tccolumnpadding = 0; // 'px'.
} else if ($this->tcsettings['layoutcolumns'] < 1) {
// Distributed default in plugin settings (and reset in database) or database has been changed incorrectly.
$this->tcsettings['layoutcolumns'] = 1;
Expand Down

0 comments on commit 20ea56a

Please sign in to comment.