[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
This commit is contained in:
Brieuc-brd
2023-10-03 12:52:33 +00:00
committed by qsm-odoo
parent 3af727c183
commit 388c88eaf2
@@ -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));
});
},
/**