Skip to content
Browse files

[FIX] web_editor: fix buttons position for bg-position when parallax

correction of the position of the buttons when editing bg-image
position with a parallax effect other than "fixed".

  • Loading branch information
bvr-odoo committed Mar 25, 2020
1 parent 5ece47e commit 24e4d0766edd56c6051e63e70d5fb1b61468a1bf
Showing with 4 additions and 0 deletions.
  1. +4 −0 addons/web_editor/static/src/js/editor/snippets.options.js
@@ -2725,6 +2725,10 @@ registry.BackgroundPosition = SnippetOptionWidget.extend({
width: `${this.$target.innerWidth()}px`,
height: `${this.$target.innerHeight()}px`,

const $buttons = this.$overlayContent.find('.o_we_overlay_buttons');
const topPosition = parseInt(this.$overlay.css('top')) - parseInt(this.$overlayContent.css('top')) + 'px';
$buttons.css('top', topPosition);
* Toggles the overlay's display and renders a background clone inside of it.

0 comments on commit 24e4d07

Please sign in to comment.
You can’t perform that action at this time.