It helps, if you lock orientation on the phone.
Whenever the phone detects an orientation change, it resets the layout.