[IMP] Set the height of text field
bzr revid: hip@tinyerp.com-20121120065118-c9hc7n2u2txgn4w2
This commit is contained in:
@@ -2539,7 +2539,7 @@ instance.web.form.FieldText = instance.web.form.AbstractField.extend(instance.we
|
||||
initialize_content: function() {
|
||||
var self = this;
|
||||
this.$textarea = this.$el.find('textarea');
|
||||
this.default_height = this.$textarea.css('height');
|
||||
this.default_height = this.$textarea.css('height',0);
|
||||
if (!this.get("effective_readonly")) {
|
||||
this.$textarea.change(_.bind(function() {
|
||||
self.internal_set_value(instance.web.parse_value(self.$textarea.val(), self));
|
||||
|
||||
Reference in New Issue
Block a user