From 607c5ea4e239c450ce9527280ad5cfe770dceb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Wed, 1 Sep 2021 14:57:44 +0000 Subject: [PATCH] [FIX] web_editor: make editor smaller in contacts Make the default height of the editor quite smaller in res.partner view. To avoid "breaking" the design and prevent scrollbars task-2586137 Part-of: odoo/odoo#75863 --- addons/web_editor/static/src/js/backend/field_html.js | 2 +- odoo/addons/base/views/res_partner_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index cb4be5c314d..c170f6d0d39 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -195,7 +195,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { linkForceNewWindow: true, tabsize: 0, - height: this.nodeOptions.height || 380, + height: this.nodeOptions.height || 110, resizable: 'resizable' in this.nodeOptions ? this.nodeOptions.resizable : true, }); }, diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index 239abc57d9d..dce1bbb4206 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -354,7 +354,7 @@ - +