D
D
Dark192017-11-21 00:47:39
safari
Dark19, 2017-11-21 00:47:39

How to correctly calculate the height with open tabs on iphone7 in safari?

Hi all. The problem is that on iphone7 in a safari browser you can open tabs in one window and when they open, the browser does not take into account their height and the application hides a little off the screen down. Here you can see on the screenshots: 5a134c204eda8624554654.jpeg
(without tabs)
5a134c3b50215800536167.jpeg
(with tabs)
The game is written on canvas and its width and height are set depending on the screen size.
I tried to set the height to 100%, I tried to calculate js-ohm (innerHeight), but it does not help. There is an option to calculate that the iphone device and use calc in css to remove the size of the tabs in advance, but this is not a beautiful solution. Can anyone come across and tell me the best solution or how can I check if the tabs are open?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question