FriendsOfTYPO3 / frontend_editing

TYPO3 CMS Frontend Editing
https://friendsoftypo3.github.io/frontend_editing/
102 stars 39 forks source link

Wrong calculation of top spacer size #735

Closed webian closed 1 year ago

webian commented 1 year ago

https://github.com/FriendsOfTYPO3/frontend_editing/blob/fe7306b80b1b070e43064f5e8dad5ff91fd3f1e3/Resources/Public/JavaScript/Editor.js#L104 calculates toolbarTopYPosition using window.pageYOffset that is always 0 because window is the iFrame containing the FE not the FE itself. When the page is scrolled down and then refreshed, the top spacer is added wrongly.