From 14879e0802be735d173c1db0739bf3989454d6ec Mon Sep 17 00:00:00 2001 From: "Hiral Patel (OpenERP)" Date: Tue, 20 Nov 2012 12:21:18 +0530 Subject: [PATCH] [IMP] Set the height of text field bzr revid: hip@tinyerp.com-20121120065118-c9hc7n2u2txgn4w2 --- addons/web/static/src/js/view_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index c784b169d12..efe3d9e671e 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -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));