1

Possible Duplicate:
jQuery Mobile lock orientation

Is there any way to prevent orientation to change?

I tried: $.mobile.orientationChangeEnabled = false; but no success...

Any ideas???

Community
  • 1
  • 1
BorisD
  • 2,231
  • 5
  • 25
  • 35
  • you should take a look at this http://stackoverflow.com/questions/7009743/jquery-mobile-lock-orientation – Romain Dec 06 '12 at 11:18

1 Answers1

2

You can't prevent orientation to change, it's a behavior of safari.

You can show to the user a messagge to explain that your site is optimized for portrait or landscape view.

grigno
  • 3,128
  • 4
  • 35
  • 47