chore: fix ios height issue

This commit is contained in:
Aman Harwara
2023-06-26 19:37:49 +05:30
parent 65a09b77d3
commit c378288d6e

View File

@@ -8,8 +8,8 @@ export const setCustomViewportHeight = (height: number, suffix: 'px' | 'vh', for
log(LoggingDomain.Viewport, `setCustomViewportHeight: ${value}`)
document.body.style.height = value
document.documentElement.style.setProperty('--ios-viewport-height', value)
document.body.style.height = 'var(--ios-viewport-height)'
if (forceTriggerResizeEvent) {
window.dispatchEvent(new Event('resize'))