From f5c269db121323d6fcc6d58b0ef335ca3be24db1 Mon Sep 17 00:00:00 2001
From: Antoine Guenet <age@odoo.com>
Date: Tue, 19 Feb 2019 09:06:49 +0000
Subject: [PATCH] [FIX] web_editor: properly position image handle in product
 configurator

The image handle (grey overlay over the image) was not properly
repositioning on scroll in the product configurator (a side effect of
not having a popover).

closes odoo/odoo#31226
---
 addons/web_editor/static/src/js/wysiwyg/plugin/media.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js
index 321531fa861e..1b4311a537b2 100644
--- a/addons/web_editor/static/src/js/wysiwyg/plugin/media.js
+++ b/addons/web_editor/static/src/js/wysiwyg/plugin/media.js
@@ -90,6 +90,9 @@ var MediaPlugin = AbstractPlugin.extend({
             return;
         }
         if (!this.options.displayPopover(target)) {
+            if (dom.isImg(target)) {
+                this.context.invoke('HandlePlugin.update', target);
+            }
             return;
         }
 
-- 
GitLab