[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.
This commit is contained in:
fka-odoo 2014-08-13 12:43:34 +05:30 committed by Martin Trigaux
parent cee1f0457d
commit 9247c37de7
1 changed files with 1 additions and 1 deletions

View 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