Make the answer entry box as big as will fit.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 25 Aug 2010 15:21:33 +0000 (15:21 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 25 Aug 2010 15:21:33 +0000 (15:21 +0000)
question/type/edit_question_form.php

index a0a5977..01fbd41 100644 (file)
@@ -281,7 +281,7 @@ class question_edit_form extends moodleform {
     function get_per_answer_fields(&$mform, $label, $gradeoptions, &$repeatedoptions, &$answersoption) {
         $repeated = array();
         $repeated[] =& $mform->createElement('header', 'answerhdr', $label);
-        $repeated[] =& $mform->createElement('text', 'answer', get_string('answer', 'quiz'), array('size' => 50));
+        $repeated[] =& $mform->createElement('text', 'answer', get_string('answer', 'quiz'), array('size' => 80));
         $repeated[] =& $mform->createElement('select', 'fraction', get_string('grade'), $gradeoptions);
         $repeated[] =& $mform->createElement('editor', 'feedback', get_string('feedback', 'quiz'),
                                 array('course' => $this->coursefilesid), $this->editoroptions);