Browse files

MDL-26113 Lesson: temporary fix of page content alignment

That rendering method should not use cell style attribute at all.
Instead, the alignment should be controlled by CSS. However, this will
require more massive changes in the Lesson code to be done by the module
maintainer. As a temporary fix, left alignment is set as it usually
matches the layout that students see.
  • Loading branch information...
1 parent 99faefb commit c76cd2ede13ac6a60ddf30344752ed05613309fd Joseph Rezeau committed with mudrd8mz Feb 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/renderer.php
View
2 mod/lesson/renderer.php
@@ -283,7 +283,7 @@ public function display_edit_full(lesson $lesson, $pageid, $prevpageid, $single=
$cell = new html_table_cell();
$cell->colspan = 2;
- $cell->style = 'text-align:center';
+ $cell->style = 'text-align:left';
$cell->text = $page->contents;
$pagetable->data[] = new html_table_row(array($cell));

0 comments on commit c76cd2e

Please sign in to comment.