J
J
Julia2017-07-26 09:53:37
iPhone
Julia, 2017-07-26 09:53:37

Layout for Iphone. How to display the entire page in horizontal mode with a menu?

there is a customer requirement that the page should fit entirely in a horizontal orientation on iPhones 5 and 6,
the problem is in the safari navigation menu, when it appears, the window size does not change and the content is partially hidden and goes down.
All the methods that I found on the internet only work in full screen mode.
How to determine the size of the visible area on an iPhone with a menu?
what event fires when the menu appears and hides?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yaroslav Rostanets, 2017-07-26
@djarik

1. Use the debugger in chrome. There is a horizontal orientation mode. You can also use: to define the window width. 2. When the menu appears / hides, "onresize" is most likely triggered. Maybe media queries will help you

@media all and (orientation: landscape) {
  /* Target device in landscape mode */
}

@media all and (orientation: portrait) {
  /* Target device in portrait mode */
}

or the screen orientation change event
https://developer.mozilla.org/en-US/docs/Web/Even...

V
Vitaly, 2017-07-26
@kat-vetal

quirktools.com/screenfly enter the page address and select the device type

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question