[FIX] widget html: 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).
This issue was already fixed in newer releases, from commit 9247c37de7
Nevertheless, it introduced a new issue: while editing the form, the content of widgets html which were located in hidden notebook pages weren't displayed when displaying the page content.
opw-614448
This commit is contained in:
parent
faa04a43de
commit
9c77f794b4
|
@ -2720,7 +2720,7 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc
|
||||||
if (! this.get("effective_readonly")) {
|
if (! this.get("effective_readonly")) {
|
||||||
self._updating_editor = false;
|
self._updating_editor = false;
|
||||||
this.$textarea = this.$el.find('textarea');
|
this.$textarea = this.$el.find('textarea');
|
||||||
var width = ((this.node.attrs || {}).editor_width || '100%');
|
var width = ((this.node.attrs || {}).editor_width || 'calc(100% - 4px)');
|
||||||
var height = ((this.node.attrs || {}).editor_height || 250);
|
var height = ((this.node.attrs || {}).editor_height || 250);
|
||||||
this.$textarea.cleditor({
|
this.$textarea.cleditor({
|
||||||
width: width, // width not including margins, borders or padding
|
width: width, // width not including margins, borders or padding
|
||||||
|
|
Loading…
Reference in New Issue