N
N
nwbck2018-03-09 18:39:39
css
nwbck, 2018-03-09 18:39:39

100vh on mobile?

There are several pages on the site that are 100vh high. In Safari and Yandex, for example, vertical scrolling appears due to the bottom bar. Is it possible to win somehow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-03-09
@webinar

.my-hren {
overflow: hidden;
height: 100vh;
}

W
wufapexef, 2018-03-09
@wufapexef

No impossible.
Well, except to calculate the JS viewport, if you don’t do it at all. This is intentional behavior.
ADF:
https://nicolas-hoizey.com/2015/02/viewport-height...
https://github.com/bokand/URLBarSizing#proposed-ch...
https://developers.google.com/ web/updates/2016/12/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question