From 7f216f62b681e7fe891ca81abdb3927cdb5841f5 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 15 Mar 2018 13:26:38 +0100 Subject: [PATCH] [FIX] web_editor: modal fullscreen is fullscreen Depending on CSS surrounding the editor, the fullscreen component could fail to set the editor fullscreen. eg. if the editor is in a modal in a modal (ie. when editing a mail template when adding an activity and creating a marketing automation campaign) the fullscreen function would set it to 184px height away 30px to the screen top. With this change, `transform` css property is unset on parent elements of the editor, this was causing the absolute editor to have an offset parent that was not the body tag. opw-1824605 closes #23682 --- addons/web_editor/static/src/less/web_editor.backend.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/less/web_editor.backend.less b/addons/web_editor/static/src/less/web_editor.backend.less index c5e09875529..ea94ebed30d 100644 --- a/addons/web_editor/static/src/less/web_editor.backend.less +++ b/addons/web_editor/static/src/less/web_editor.backend.less @@ -52,9 +52,9 @@ position: static !important; top: 0 !important; left: 0 !important; - overflow: visible !important; width: auto !important; overflow: hidden !important; + transform: none !important; } }