summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2019-12-17 12:59:31 +0000
committerSamuel Degueldre <sad@odoo.com>2019-12-17 13:05:06 +0000
commited5aa6be638c4e647f3c5e121904fd23be01e405 (patch)
tree043954059fb454be72c3e29c0ff4e5a8d0cca194
parent5661b48cfb1b59a0cf95f15ecadfa288f6723936 (diff)
[FIX] web_editor: fix background postion option on columns
The background position snippet option makes a copy of the snippet to use in the overlay, such that it is over all content and the user can easily see the end result of dragging the background. However, an oversight in the CSS didn't account for the possibility of the copied element to have a relative max-width (% of its container), because of this, the overlay for those items was incorrect. This commit fixes that issue by overriding the max-width and max-height properties of the copied item. closes odoo/odoo#42106 X-original-commit: 3b8cadd579f3309640a938bcce39ac83ac7a6942 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg_snippets.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
index 211f78c165c..04388b89bcc 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -938,6 +938,8 @@ body.editor_enable.editor_has_snippets {
bottom: 0 !important;
left: 0 !important;
transform: none !important;
+ max-width: unset !important;
+ max-height: unset !important;
}
}
}