From 8d0d5e0d07988d3787b7771425dda8cd511d90c6 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Mon, 26 Apr 2021 15:31:21 +0000 Subject: [PATCH] [FIX] web_editor: ensure editor in iframe can be scrolled on crop image The overlay around an image when cropping it is positioned absolutely. If it has no relative ancestor, it will cover the entire body. This is what happend in mass_mailing, making it impossible to scroll the page while cropping. This commit addresses the issue by positioning that editable relatively so that the overlay never goes beyond its bounds. closes odoo/odoo#69878 X-original-commit: c4d423640a9f1f9892e9d24dc08531ba0bbf8887 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/src/scss/wysiwyg_iframe.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg_iframe.scss b/addons/web_editor/static/src/scss/wysiwyg_iframe.scss index ba5ac304235..9a1197abd85 100644 --- a/addons/web_editor/static/src/scss/wysiwyg_iframe.scss +++ b/addons/web_editor/static/src/scss/wysiwyg_iframe.scss @@ -17,6 +17,10 @@ body.o_in_iframe { background-color: $o-view-background-color; display: flex; + .o_editable { + position: relative; + } + #oe_snippets { top: 0; }