[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) <dmo@odoo.com>
This commit is contained in:
Rodolpho Lima
2023-07-28 16:29:32 +02:00
parent 940ff56920
commit 58352b6e69
@@ -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) {