MDL-16018 textarea height - min 7 lines to avoid visualization problem

This commit is contained in:
Eloy Lafuente
2010-01-22 00:01:08 +00:00
parent 589ad34e82
commit 3a41c990dc
+2
View File
@@ -83,6 +83,8 @@ class data_field_textarea extends data_field_base {
}
function gen_textarea($usehtmleditor, $text='') {
// MDL-16018: Don't print htmlarea with < 7 lines height, causes visualization problem
$this->field->param3 = $usehtmleditor && $this->field->param3 < 7 ? 7 : $this->field->param3;
return print_textarea($usehtmleditor, $this->field->param3, $this->field->param2,
'', '', 'field_'.$this->field->id, $text, '', true, 'field_' . $this->field->id);
}