A
A
Anna Bakurova2015-08-14 10:55:28
css
Anna Bakurova, 2015-08-14 10:55:28

How to fix layout distortion when changing orientation on iPhone 4?

The essence of the problem is this: we have a design and layout for portrait orientation of phones, everything works ok.
But when we change the orientation to landscape on the iPhone 4, naturally it looks crooked, but the problem is that when we return back to portrait orientation, we see something in between portrait and landscape.
The problem is only on the iPhone. On other OS and browsers, everything is ok, and when switching from landscape to portrait, everything returns as it should.
There are no media queries for orientation in the code.
neemble.ru/mb/index.php - we look from the phone. Doesn't work in the simulator.
0c2cc65f18754c35927005db40f13dab.PNG
Screenshot attached

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2015-08-14
@Shucach

Why don't you use media queries? They can help you in this case.

M
monochromer, 2015-08-16
@monochromer

Not sure, but maybe this will help (taken from normalize )

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question