From 58352b6e696a7367e0f8f86b762f4052cd229230 Mon Sep 17 00:00:00 2001 From: Rodolpho Lima Date: Thu, 25 May 2023 16:28:53 +0000 Subject: [PATCH] [FIX] web_editor: toolbar position after mouseup On mouseup the toolbar size might change (eg. link button removed), leading to an ill-positioned toolbar. This commit makes sure the toolbar position is updated after going through changes after a mouseup. task-3347670 closes odoo/odoo#130022 X-original-commit: af52356704f990ecb3c8a7832fe3de8898026885 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/js/wysiwyg/wysiwyg.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 82182ce5ab2..16dab0efd97 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -2168,6 +2168,8 @@ export class Wysiwyg extends Component { buttonGroup.classList.add('d-none'); } } + // Toolbar might have changed size, update its position. + this.odooEditor.updateToolbarPosition(); // Update color of already opened colorpickers. setTimeout(() => { for (const colorType in this.colorPalettesProps) {