diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index c0fac1b4d0b3e00c90ee6b0dc6eeed3d577c92b4..e3195584ef74b55839f8cec27eaa5bb05e3d7ecc 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -209,7 +209,7 @@ const Wysiwyg = Widget.extend({ getContextFromParentRect: options.getContextFromParentRect, getScrollContainerRect: () => { if (!this.scrollContainer || !this.scrollContainer.getBoundingClientRect) { - this.scrollContainer = document.querySelector('.o_action_manager'); + this.scrollContainer = document.querySelector('.o_action_manager') || document.body; } return this.scrollContainer.getBoundingClientRect(); },