From 9247c37de7d67beb479905e218656665dc12391f Mon Sep 17 00:00:00 2001 From: fka-odoo Date: Wed, 13 Aug 2014 12:43:34 +0530 Subject: [PATCH] [FIX] web: rendering issue in mail composer on Firefox The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700). Replaced by auto, the default value adviced by CLEditor. --- 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 4f6322ea0a0..8446a4c79fb 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2733,7 +2733,7 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc if (! this.get("effective_readonly")) { self._updating_editor = false; this.$textarea = this.$el.find('textarea'); - var width = ((this.node.attrs || {}).editor_width || '100%'); + var width = ((this.node.attrs || {}).editor_width || 'auto'); var height = ((this.node.attrs || {}).editor_height || 250); this.$textarea.cleditor({ width: width, // width not including margins, borders or padding