Skip to content
Snippets Groups Projects
Commit e49480fe authored by Benjamin Vray's avatar Benjamin Vray
Browse files

[FIX] web_editor: fix drop zones when dragging a snippet


Before this commit:

-when moving a snippet using the drag and drop button, two drop zones
instead of one was added at the initial location of the dragged
snippet.

-when moving a snippet using the drag and drop button, no drop zone
was added at the initial location of the dragged snippet if the snippet
was alone in its parent. For example, the left jumbotron in the banner
snippet.

-the drop zones handled by the "children rules" were never vertical
when it was necessary.

This commit also refactors the code to avoid some duplicated lines.

task-2312878

closes odoo/odoo#61336

Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
parent bb898e66
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment