From 449f8f32207f601b53f7fa8c4d697bf854f711e9 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Fri, 14 Jan 2022 11:27:51 +0000 Subject: [PATCH] [FIX] web: ensure scrollbar in mail designer Commit [1] moved the scrollbar from the document body to the top element (#wrapwrap). This works for website builder but fails for iframes which don't have that element. This is apparent in Marketing Automation mail templates where it's become impossible to scroll down. This fixes that issue by excluding iframes in that rule. task-2734825 [1] https://github.com/odoo/odoo/commit/9f048625e11dacda9fd49694e89ae65bc112374f closes odoo/odoo#82777 X-original-commit: 95f280c4032a7358deeedae1cb6f63beab70387b Signed-off-by: David Monjoie (dmo) --- addons/web/static/src/legacy/scss/base_frontend.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/legacy/scss/base_frontend.scss b/addons/web/static/src/legacy/scss/base_frontend.scss index c300b3db38e..befd34db1d2 100644 --- a/addons/web/static/src/legacy/scss/base_frontend.scss +++ b/addons/web/static/src/legacy/scss/base_frontend.scss @@ -1,5 +1,5 @@ // Frontend general -html, body, #wrapwrap { +html:not(:has(.o_in_iframe)), body:not(.o_in_iframe), #wrapwrap { width: 100%; height: 100%; overflow: hidden;