From 388c88eaf22bdf3c41b205c941488fdb3670dfb3 Mon Sep 17 00:00:00 2001 From: Brieuc-brd Date: Fri, 22 Sep 2023 14:05:15 +0200 Subject: [PATCH] [FIX] web_editor: remove handle area's overlapping Prior to this commit, the area of top and bottom handles overlapped the content according to the size of the overlay border. This commit changes the way height is calculated to remove this overlap. task-3368793 Part-of: odoo/odoo#132653 --- addons/web_editor/static/src/js/editor/snippets.options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 3b66b9115e6..e5f301861e3 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -4671,7 +4671,7 @@ registry.sizing = SnippetOptionWidget.extend({ this.$overlay.find('.o_handle:not(.o_grid_handle)').filter(".n, .s").toArray().forEach(handle => { var $handle = $(handle); var direction = $handle.hasClass('n') ? 'top' : 'bottom'; - $handle.height(self.$target.css('padding-' + direction)); + $handle.outerHeight(self.$target.css('padding-' + direction)); }); }, /**