File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
core/src/components/modal/gestures Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,12 @@ export const createSheetGesture = (
178178 // and needs to be swapped back to stationary so it collapses correctly.
179179 if ( index === 0 ) {
180180 cachedFooterYPosition = absoluteTop ;
181- // If there's a toolbar , we need to combine the toolbar height with the footer position
182- // because the toolbar moves with the drag handle, so when it starts overlapping the footer,
181+ // If there's a header , we need to combine the header height with the footer position
182+ // because the header moves with the drag handle, so when it starts overlapping the footer,
183183 // we need to account for that.
184- const toolbar = baseEl . querySelector ( 'ion-toolbar ' ) as HTMLIonToolbarElement | null ;
185- if ( toolbar ) {
186- cachedFooterYPosition -= toolbar . clientHeight ;
184+ const header = baseEl . querySelector ( 'ion-header ' ) as HTMLIonHeaderElement | null ;
185+ if ( header ) {
186+ cachedFooterYPosition -= header . clientHeight ;
187187 }
188188 }
189189 } ) ;
You can’t perform that action at this time.
0 commit comments