Z
Z
z_u_l2019-05-23 18:51:06
css
z_u_l, 2019-05-23 18:51:06

How to fix Safari IOS 9 cross-browser overflow, 100vh issue?

The essence of the problem: when you click on the "Open menu" button, the menu opens. But on Safari IOS, for some reason it is truncated from the bottom. I read that Safari IOS considers the height differently. But I still don’t understand how it is possible to make the menu in the overflow block not fit completely, i.e. to be like on chrome android. Ios
example link : Android:
5ce6c136ed5d1551737226.jpeg
5ce6c14f3f9f3881383165.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
arsenty, 2019-05-23
@arsenty

Either JS or CSS like padding-top/bottom. Initially, vh / vw is the visible part of the screen, without taking into account any overlapping navigation bars (they had not yet been invented then).

Z
z_u_l, 2019-05-24
@z_u_l

Solved the problem like this:
html {
height: 100%;
}
.m-openSideMenu {
min-height: 100%;
}
.m-openSideMenu .inner,
.m-openSideMenu .sidebar,
.m-openSideMenu .sticky {
height: 100%;
}
I'll post an example later

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question