Files
odoo_source/addons
Soukéina Bojabza 3be69751e7 [FIX] web_editor: hide grid gap preview when toggling the mobile preview
When changing the grid gaps (see commit [1]) a grid preview is displayed
in order to visualize the changes. As it cannot be displayed in mobile
view (otherwise, the layout looks broken), some code prevents it to be
added in this case. However, a case has not been taken into account:
- In desktop view, change the gaps of a grid with the "Spacing (Y, X)"
option.
- Before the preview disappears, quickly activate the mobile preview.
=> The preview is displayed (before disappearing).

This commit prevents the grid preview to be displayed in mobile view. To
do so, its height is forced to 0. Note that `display` could be set to
`none` instead but since it prevents the animation to be played, the
preview would not be removed by its listener.

[1]: https://github.com/odoo/odoo/commit/4345df3aeeb83463d81bc24749856fef3a58fb3a

task-3555898

closes odoo/odoo#138795

Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
2023-10-24 12:38:26 +00:00
..
2023-10-20 09:35:21 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 09:35:21 +00:00
2023-10-20 09:35:21 +00:00
2023-10-16 09:21:17 +00:00
2023-10-16 09:21:17 +00:00
2023-10-20 09:35:21 +00:00