[FIX] web_editor: reverted useful code which had been put as a comment by mistake at https://github.com/odoo/odoo/commit/344d82ca251bbba8f54e85d6b881cc92f8823f13
closes odoo/odoo#90401 X-original-commit: 6e990b6d13699e347275383b703dec34ddac3197 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -1358,11 +1358,11 @@ const Wysiwyg = Widget.extend({
|
||||
setTimeout(() => {
|
||||
const scrollableContainer = this.$el.scrollParent();
|
||||
if (!options.snippets && scrollableContainer.length) {
|
||||
// this.odooEditor.addDomListener(
|
||||
// scrollableContainer[0],
|
||||
// 'scroll',
|
||||
// this.odooEditor.updateToolbarPosition.bind(this.odooEditor),
|
||||
// );
|
||||
this.odooEditor.addDomListener(
|
||||
scrollableContainer[0],
|
||||
'scroll',
|
||||
this.odooEditor.updateToolbarPosition.bind(this.odooEditor),
|
||||
);
|
||||
}
|
||||
}, 0);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user