Skip to content
Browse files

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

  • Loading branch information...
1 parent 589ad34 commit 3a41c990dc376b79791bd086692d666e20f4a642 @stronk7 stronk7 committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/data/field/textarea/field.class.php
View
2 mod/data/field/textarea/field.class.php
@@ -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);
}

0 comments on commit 3a41c99

Please sign in to comment.
Something went wrong with that request. Please try again.