Center justification in the Expanded Lesson Edit Window

Center justification in the Expanded Lesson Edit Window

Napisane bez: Matt Fedorko ()
Liczba ôdpowiedzi: 4

Okay, here's my second problem. Once again, this is the Base theme, but I am seeing the problem in our own theme as well, which is modified from Base. The screenshot below is the Edit tab, Expanded View, in a Lesson. This is the page that shows all of the Content Pages / Question Pages, etc of a Lesson in one long page. Notice that it is showing all of the text Center Justified.

Bajlaga ($a)
W ôdpowiedzi na Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

Napisane bez: Matt Fedorko ()

However, when I Preview the actual page, the real formatting is shown, as shown in the screenshot below. The problem here, obviously, is that I can't scroll through my lessons quickly and see oddities in formatting because the entire darn thing is an oddity!

I tried this in two other themese (Magazine was one, the other was some other one) and it behaved like this in those two, too.

Any help would be appreciated.

Bajlaga ($a)
W ôdpowiedzi na Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

Napisane bez: Matt Fedorko ()

Any word on this error? I've looked at this one in multiple themes, including Standard. I would be happy to post the screenshots of this situation in Standard theme if that would help. It appears every time.

Once again, I'm looking at the "Edit" tab inside a Lesson. I'm in "Expanded View." All of the text is center justified  in this view, but when previewing it or viewing the Lesson as a student, it appears correctly. More annoying than game-ending, but still a bug. Anyone?

W ôdpowiedzi na Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

Napisane bez: Joseph Rézeau ()
Ôbrŏz Core developers Ôbrŏz Particularly helpful Moodlers Ôbrŏz Plugin developers Ôbrŏz Testers Ôbrŏz Translators

Easy fix:

--- a/mod/lesson/renderer.php
+++ b/mod/lesson/renderer.php
@@ -283,7 +283,7 @@ class mod_lesson_renderer extends plugin_renderer_base {

$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));

--

MDL-26113

Joseph