fix: window size on mobile (#1600)

This commit is contained in:
Aman Harwara
2022-09-20 16:48:03 +05:30
committed by GitHub
parent 9aa7bc018e
commit dd5ca0c28c

View File

@@ -66,7 +66,10 @@ const startApplication: StartApplication = async function startApplication(
root = createRoot(appendedRootNode)
disableIosTextFieldZoom()
document.documentElement.style.setProperty('--viewport-height', `${window.innerHeight}px`)
document.documentElement.style.setProperty(
'--viewport-height',
`${visualViewport ? visualViewport.height : window.innerHeight}px`,
)
root.render(
<ApplicationGroupView