[FIX] web_editor: fix snippets shown in codeview

Issue

	- Install Mass Mailing
	- Activate debug mode
	- Create a mass mailing
	- Select any template
	- Go in codeview

	The snippets hide a part of the code

Cause

	When toggling the codeview, we apply
	a position absolute (all to 0) which
	shift the #wrapwrap

Solution

	Add an intermediary parent and apply
	position relative to #wrapwrap like
	in 12.0

OPW-2220639

closes odoo/odoo#48496

X-original-commit: e415cffa2ffb3fe4b5f0e32bd96b3433387a95e3
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
This commit is contained in:
jvm-odoo
2020-03-27 11:52:00 +00:00
parent 8e44b39570
commit f9bf408a82
2 changed files with 12 additions and 2 deletions
@@ -20,4 +20,12 @@ body.o_in_iframe {
.note-statusbar {
display: none;
}
}
#wrapwrap {
position: relative;
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
}
}
+3 -1
View File
@@ -45,7 +45,9 @@
<body id="iframe_target" class="o_in_iframe">
<div id="web_editor-top-edit"></div>
<div id="wrapwrap">
<div data-oe-model="model" data-oe-type="html" class="o_editable oe_structure"></div>
<main>
<div data-oe-model="model" data-oe-type="html" class="o_editable oe_structure"></div>
</main>
</div>
<script type="text/javascript">
odoo.define('web_editor.wysiwyg.iniframe', function (require) {