[FIX] web: rendering issue in mail composer on Firefox
authorfka-odoo <fka@openerp.com>
Wed, 13 Aug 2014 07:13:34 +0000 (12:43 +0530)
committerMartin Trigaux <mat@openerp.com>
Tue, 19 Aug 2014 09:55:53 +0000 (11:55 +0200)
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

index 4f6322e..8446a4c 100644 (file)
@@ -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