diff --git a/addons/website/static/src/js/content/snippets.animation.js b/addons/website/static/src/js/content/snippets.animation.js index 0370a3e06efdb66c8fd49e4a2083bbf95af13a6e..8cb4da6efe90f186117d84e0728a587b061650b5 100644 --- a/addons/website/static/src/js/content/snippets.animation.js +++ b/addons/website/static/src/js/content/snippets.animation.js @@ -516,6 +516,7 @@ registry.parallax = Animation.extend({ destroy: function () { this._super.apply(this, arguments); $(window).off('.animation_parallax'); + this.$target.css('overflow', ''); }, //-------------------------------------------------------------------------- @@ -543,6 +544,7 @@ registry.parallax = Animation.extend({ this.$bg.css('background-image', urlTarget); } this.$target.css('background-image', 'none'); + this.$target.css('overflow', ''); // Get parallax speed this.speed = parseFloat(this.$target.attr('data-scroll-background-ratio') || 0); @@ -569,6 +571,9 @@ registry.parallax = Animation.extend({ top: -this.ratio, bottom: -this.ratio, }); + // TODO this introduces a limitation: no dropdown will be able to + // overflow. Maybe there is a better way to find. + this.$target.css('overflow', 'hidden'); }, //-------------------------------------------------------------------------- diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 6b598536d346ff3f8de138ee7b283c7250beac52..472bb5b7ae3c915ab34001fb46b49110ddd05dff 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -923,7 +923,6 @@ table.table_desc tr td { // Parallax .parallax { position: relative; - overflow: hidden; > * { position: relative;