[FIX] web: size of text fields textarea when invisible by default
Text fields, or char fields having widget="text", were not sized correctly when the field was not visible by default, ans was set visible thanks to attrs and other fields values. opw-629394
This commit is contained in:
parent
ab9f02cdee
commit
c9a72b79e4
|
@ -2647,6 +2647,7 @@ instance.web.form.FieldText = instance.web.form.AbstractField.extend(instance.we
|
|||
this.$textarea = this.$el.find('textarea');
|
||||
this.auto_sized = false;
|
||||
this.default_height = this.$textarea.css('height');
|
||||
if (this.default_height === '0px') this.default_height = '90px';
|
||||
if (this.get("effective_readonly")) {
|
||||
this.$textarea.attr('disabled', 'disabled');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue