MDL-52427 questions: all parts of a Q should be clearfix

Otherwise large floated images may overflow.
This commit is contained in:
Tim Hunt
2015-12-13 20:32:13 +00:00
parent 6ace0f59ae
commit 1507697d9f
+4 -4
View 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');