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 1825fe411e5..60d89f17618 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -7314,7 +7314,7 @@ registry.BackgroundPosition = SnippetOptionWidget.extend({ backgroundType: function (previewMode, widgetValue, params) { this.$target.toggleClass('o_bg_img_opt_repeat', widgetValue === 'repeat-pattern'); this.$target.css('background-position', ''); - this.$target.css('background-size', ''); + this.$target.css('background-size', widgetValue !== 'repeat-pattern' ? '' : '100px'); }, /** * Saves current background position and enables overlay.