From 9c77f794b44a0b18d548385ae3ec9f49c6f85a94 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 23 Sep 2014 18:53:17 +0200 Subject: [PATCH] [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 9247c37de7d67beb479905e218656665dc12391f 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 --- 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 08050c7d686..439aaf0ed89 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2720,7 +2720,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 || 'calc(100% - 4px)'); var height = ((this.node.attrs || {}).editor_height || 250); this.$textarea.cleditor({ width: width, // width not including margins, borders or padding