diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js index 111437292e3..7211aadc694 100644 --- a/addons/website/static/src/js/editor/snippets.options.js +++ b/addons/website/static/src/js/editor/snippets.options.js @@ -2756,6 +2756,20 @@ options.registry.ScrollButton = options.Class.extend({ // Options //-------------------------------------------------------------------------- + /** + * @see this.selectClass for parameters + */ + async showScrollButton(previewMode, widgetValue, params) { + if (widgetValue) { + this.$button.show(); + } else { + if (previewMode) { + this.$button.hide(); + } else { + this.$button.detach(); + } + } + }, /** * Toggles the scroll down button. */ diff --git a/addons/website/views/snippets/snippets.xml b/addons/website/views/snippets/snippets.xml index 41767ef4edd..fa0b6494473 100644 --- a/addons/website/views/snippets/snippets.xml +++ b/addons/website/views/snippets/snippets.xml @@ -1004,20 +1004,19 @@ - -
- - Auto - 50% - 100% - -
-
- + + Auto + 50% + 100% + + +