Skip to content

Commit

Permalink
MDL-16018 textarea height - min 7 lines to avoid visualization problem
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 22, 2010
1 parent 589ad34 commit 3a41c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/data/field/textarea/field.class.php
Expand Up @@ -83,6 +83,8 @@ function generate_sql($tablealias, $value) {
}

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);
}
Expand Down

0 comments on commit 3a41c99

Please sign in to comment.