Tuesday, October 11, 2022
1 change · master
Resolved issues and error corrections
This fixes an issue in the website editor where background image positioning could preview or save inaccurately after page editing moved into an iframe. The positioning overlay now uses the same page viewport, helping users place backgrounds reliably while editing website pages.
Original PR description
With commit [1], the edition of website pages was moved in the backend inside an iframe while the editor is instanced outside. A lot of the pre-existing code was adapted to support that transition but the background position option was left untouched. This leads to the position not being accurate because the overlay for positioning the background is outside the iframe which makes the viewport different, resulting in an inaccurate preview and positioning. To fix this, this commit moves the background position overlay inside the iframe, insuring that the viewport and position of the background is accurately previewed and set. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506