I’m working on an app which needs to be responsive vertically on all devices.
The layout works perfect in Chrome emulator, it’s also perfect on Android device.
However, it’s different in iOS Simulator. See the screenshot:
What I want to achieve is:
- the bar header takes certain height, like 44px(I hide the statusbar).
- the other 4 blocks divide the remaining vertical space equally.
my css is like this: codepen.
it works perfect, except on iOS Simulator(I’ve not test on iOS device yet).
the problem lies in here:
normally, it will equal to .scroll-content height which is the whole screen height(568px) - header(44px). so then, I can divide the vertical space in it by “height: 25%”.
However, on iOS Simulator, the height of .scroll becomes different, looks like the whole screen.
Does anyone know why this happens?