D
D
Dmitry Kashkovsky2017-06-02 13:58:15
css
Dmitry Kashkovsky, 2017-06-02 13:58:15

How to make mobile chrome recalculate window height when address bar is hidden?

Video - https://goo.gl/photos/ZNwVrisLqSwf7NAk8
there is a fixed div that takes up the entire height and overlaps the contents of the body.


position: fixed;
top:0;
bottom: 0;
width: 100%
max-width: 440px
z-index: 100;

when scrolling, the address bar is hidden in chrome, but the form height is recalculated only after that, it turns out ugly.
How to fix?
Website - https://kashkovskiy.ru/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-06-02
@Zverushko

height: 100vh;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question