* Resolves the current root --ion-safe-area-top value and sets the * internal --ion-modal-offset-top property on the host element. * Called on present and on resize (e.g., device rotation changes safe-area).
()
| 1475 | * Called on present and on resize (e.g., device rotation changes safe-area). |
| 1476 | */ |
| 1477 | private updateSheetOffsetTop(): void { |
| 1478 | const safeAreaTop = getRootSafeAreaTop(); |
| 1479 | this.el.style.setProperty('--ion-modal-offset-top', `${safeAreaTop}px`); |
| 1480 | } |
| 1481 | |
| 1482 | /** |
| 1483 | * Updates safe-area overrides during dynamic state changes. |
no test coverage detected