Files
odoo_source/addons/web_editor
utag-odoo 926cdda3ef [FIX] web_editor: fix overlay hidden after image cropping
Steps to reproduce:
 1. Go to the website
 2. Drag a snippet that contains an image
 3. Select the image block
 4. Go to customize the image
 5. Go to transform - select crop image
 6. Crop and apply changes -> Overlay is hidden

Before this commit, after cropping an image the overlay was hidden. To
make the overlay visible again, you have to click elsewhere on the
snippet and then click on the image again, because the overlay was being
hidden.

When we perform an image crop, we activate the `hide_overlay` action,
which subsequently eliminates the `o_we_overlay_preview` class. This is
due to the fact that, during the image-cropping process, the
`previewMode` is set to `false.` However, if we wish to keep the overlay
visible, We can simply avoid triggering the "hide_overlay" action.

task-3392225

closes odoo/odoo#157635

X-original-commit: 2075b4c957a8e2d03fcfd8bfab99be1e49c31ca9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-03-14 11:12:31 +00:00
..
…