summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-12-10 13:56:40 +0000
committerBenjamin Vray <bvr@odoo.com>2020-12-10 13:56:40 +0000
commit597585c9b8b1350bcfd84e8433ea6c82060bcc3d (patch)
treec5860a84d6608aa90d075ea53ad35d7c72d9b2ed /addons/web_editor
parenta35c65032fc5ed1371957c362921bf5fa30062ff (diff)
[FIX] web_editor: fix background position on shapes
Before this commit, the background-position was not removed from a shape when it was re-flipped to its original orientation. introduced in #61114 closes odoo/odoo#63173 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js
index 3dd0b3ebb70..53a3ddbd18e 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -4005,6 +4005,7 @@ registry.BackgroundShape = SnippetOptionWidget.extend({
} else {
// Remove custom bg image and let the shape class set the bg shape
$(shapeContainer).css('background-image', '');
+ $(shapeContainer).css('background-position', '');
}
if (previewMode === false) {
this.prevShapeContainer = shapeContainer.cloneNode(true);