File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Resources/Public/JavaScript Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ define([
101101 const firstInlineActionsToolbar = iframeDocument . querySelector ( '.t3-frontend-editing__inline-actions' ) ;
102102 if ( firstInlineActionsToolbar ) {
103103 firstInlineActionsToolbar . style . display = 'block' ; // Tmp set display block or else the toolbar has height=0
104- const toolbarTopYPosition = window . pageYOffset + firstInlineActionsToolbar . getBoundingClientRect ( ) . top ;
104+ const toolbarTopYPosition = feIframe . contentWindow . scrollY + firstInlineActionsToolbar . getBoundingClientRect ( ) . top ;
105105 const toolbarHeight = firstInlineActionsToolbar . offsetHeight ;
106106 firstInlineActionsToolbar . style . display = 'none' ; // Reset toolbar display to none
107107 if ( toolbarTopYPosition < toolbarHeight ) {
You can’t perform that action at this time.
0 commit comments