From 597585c9b8b1350bcfd84e8433ea6c82060bcc3d Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Thu, 10 Dec 2020 13:56:40 +0000 Subject: [FIX] web_editor: fix background position on shapes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/web_editor/static/src/js/editor/snippets.options.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web_editor/static/src') 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); -- cgit v1.2.3