While developing my website, I made extensive use of vh units. However, I noticed that in mobile browsers like Chrome, the browser's address bar disappears when scrolling down and re-appears when scrolling back up.
The problem is that this resizing causes all elements on my page to adjust due to the changes in document height caused by the address bar. Is there a workaround for this issue? Perhaps calculating the current device vh using jQuery initially and then converting all measurements to pixels instead of vh?
Any other suggestions or solutions would be greatly appreciated.
Thank you!