[IMP] Set the height of text field

bzr revid: hip@tinyerp.com-20121120065118-c9hc7n2u2txgn4w2
This commit is contained in:
Hiral Patel (OpenERP)
2012-11-20 12:21:18 +05:30
parent d9296387f0
commit 14879e0802
+1 -1
View File
@@ -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));