Skip to content

Commit 991e02a

Browse files
committed
fix(modal): padding value was always zero
1 parent df96686 commit 991e02a

File tree

1 file changed

+3
-3
lines changed
  • core/src/components/modal/gestures

1 file changed

+3
-3
lines changed

core/src/components/modal/gestures/sheet.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ export const createSheetGesture = (
130130
baseEl.querySelector('ion-footer') as HTMLIonFooterElement :
131131
wrapperEl.nextElementSibling as HTMLIonFooterElement;
132132

133-
const pagePadding =
134-
footer === 'original' ? 0 : footerToShow.clientHeight;
135-
136133
footerToShow.style.removeProperty('display');
137134
footerToShow.removeAttribute('aria-hidden');
138135

136+
const pagePadding =
137+
footer === 'original' ? 0 : footerToShow.clientHeight;
138+
139139
const page = baseEl.querySelector('.ion-page') as HTMLElement;
140140
page.style.setProperty('padding-bottom', `${pagePadding}px`);
141141

0 commit comments

Comments
 (0)