Skip to content
Snippets Groups Projects
Commit c0280bf6 authored by Rodolpho Lima's avatar Rodolpho Lima
Browse files

[FIX] web_editor: toolbar arrow position in iframe

Before this commit the position of the arrow was incorrect when the
editor is inside an iframe.

For the calculation of `arrowLeftPos` we need the difference between
the selection rectangle border and the toolbar's left position.
While `correctedSelectionRect.right` is relative to the current iframe's
borders, `left` is relative to the top document's window, as it has been
offset with `parentContextRect.left`. We need both values to be relative
to the same referential in order to make this calculation make sense.

task-3347942

Part-of: odoo/odoo#123568
parent 5fd86124
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