diff --git a/addons/web_editor/static/src/js/common/ace.js b/addons/web_editor/static/src/js/common/ace.js index c69d795de2c..5f4275b7189 100644 --- a/addons/web_editor/static/src/js/common/ace.js +++ b/addons/web_editor/static/src/js/common/ace.js @@ -338,10 +338,12 @@ var ViewEditor = Widget.extend({ function startResizing(e) { refX = e.pageX; resizing = true; + document.body.classList.add("o_ace_view_editor_resizing"); } function stopResizing() { if (resizing) { resizing = false; + document.body.classList.remove("o_ace_view_editor_resizing"); if (this.errorSession) { // To trigger an update of the error display diff --git a/addons/web_editor/static/src/scss/web_editor.common.scss b/addons/web_editor/static/src/scss/web_editor.common.scss index b8c1ee47265..e546c06de3b 100644 --- a/addons/web_editor/static/src/scss/web_editor.common.scss +++ b/addons/web_editor/static/src/scss/web_editor.common.scss @@ -485,6 +485,10 @@ a.o_underline { } } +.o_ace_view_editor_resizing iframe { + pointer-events: none; +} + .o_ace_error_popover { max-width: 40vw;