From d392b13a6325a0cfe1d15110c0ecbed1710a171f Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Sun, 13 Dec 2015 20:27:54 +0000 Subject: [PATCH] MDL-52427 questions: all parts of a Q should be clearfix Otherwise large floated images may overflow. --- question/engine/renderer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/question/engine/renderer.php b/question/engine/renderer.php index ce87306ef05..87162d6b18f 100644 --- a/question/engine/renderer.php +++ b/question/engine/renderer.php @@ -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'); -- 2.43.0