Center justification in the Expanded Lesson Edit Window

Center justification in the Expanded Lesson Edit Window

par Matt Fedorko,
Nombre de réponses : 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.

Annexe ExpandedEdit.jpg
Moyenne des évaluations: -
En réponse à Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

par 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.

Annexe PreviewofSame.jpg
En réponse à Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

par 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?

En réponse à Matt Fedorko

Re: Center justification in the Expanded Lesson Edit Window

par Joseph Rézeau,
Avatar Core developers Avatar Particularly helpful Moodlers Avatar Plugin developers Avatar Testers Avatar 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

Moyenne des évaluations:Useful (2)