From 9199e7a569f1f56d6231cfea732511a1e0a1ddd1 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 27 May 2011 12:11:54 +0100 Subject: [PATCH] MDL-20636 fix styling of essay questions. #371 --- question/type/essay/renderer.php | 2 +- question/type/essay/styles.css | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/question/type/essay/renderer.php b/question/type/essay/renderer.php index dc333952abf..24001a99175 100644 --- a/question/type/essay/renderer.php +++ b/question/type/essay/renderer.php @@ -185,7 +185,7 @@ class qtype_essay_format_editor_renderer extends plugin_renderer_base { public function response_area_read_only($name, $qa, $step, $lines, $context) { return html_writer::tag('div', $this->prepare_response($name, $qa, $step, $context), - array('class' => $this->class_name() . ' qtype_essay_response')); + array('class' => $this->class_name() . ' qtype_essay_response readonly')); } public function response_area_input($name, $qa, $step, $lines, $context) { diff --git a/question/type/essay/styles.css b/question/type/essay/styles.css index d7457fa7ad1..44e3518c7e3 100644 --- a/question/type/essay/styles.css +++ b/question/type/essay/styles.css @@ -10,9 +10,11 @@ font-family: Andale Mono, Monaco, Courier New, DejaVu Sans Mono, monospace; } .que.essay .qtype_essay_response { - background-color: white; min-height: 3em; } +.que.essay .qtype_essay_response.readonly { + background-color: white; +} .que.essay div.qtype_essay_response textarea { width: 100%; } -- 2.43.0