MDL-52427 questions: all parts of a Q should be clearfix
authorTim Hunt <T.J.Hunt@open.ac.uk>
Sun, 13 Dec 2015 20:27:54 +0000 (20:27 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Sun, 13 Dec 2015 20:27:54 +0000 (20:27 +0000)
Otherwise large floated images may overflow.

question/engine/renderer.php

index ce87306..87162d6 100644 (file)
@@ -107,18 +107,18 @@ class core_question_renderer extends plugin_renderer_base {
         $output .= html_writer::tag('div',
                 $this->add_part_heading($qtoutput->formulation_heading(),
                     $this->formulation($qa, $behaviouroutput, $qtoutput, $options)),
-                array('class' => 'formulation'));
+                array('class' => 'formulation clearfix'));
         $output .= html_writer::nonempty_tag('div',
                 $this->add_part_heading(get_string('feedback', 'question'),
                     $this->outcome($qa, $behaviouroutput, $qtoutput, $options)),
-                array('class' => 'outcome'));
+                array('class' => 'outcome clearfix'));
         $output .= html_writer::nonempty_tag('div',
                 $this->add_part_heading(get_string('comments', 'question'),
                     $this->manual_comment($qa, $behaviouroutput, $qtoutput, $options)),
-                array('class' => 'comment'));
+                array('class' => 'comment clearfix'));
         $output .= html_writer::nonempty_tag('div',
                 $this->response_history($qa, $behaviouroutput, $qtoutput, $options),
-                array('class' => 'history'));
+                array('class' => 'history clearfix'));
 
         $output .= html_writer::end_tag('div');
         $output .= html_writer::end_tag('div');