[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:
@@ -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));
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user