Closed webian closed 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.
toolbarTopYPosition
window.pageYOffset
window
https://github.com/FriendsOfTYPO3/frontend_editing/blob/fe7306b80b1b070e43064f5e8dad5ff91fd3f1e3/Resources/Public/JavaScript/Editor.js#L104 calculates
toolbarTopYPosition
usingwindow.pageYOffset
that is always 0 becausewindow
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.