0

I am working on the enterprise apps which is dashboard application in phonegap for both android and iOS. In my app, 4 screens need to be developed on portrait mode and others should be in landscape. Here, I need to set the screen orientation portrait to portrait and landscape to landscape irrespective of sensor(without rotating the mobile). I have made a research for more than 3 days and not able to find out a correct plugin or correct piece of code. Already tried using -webkit-transform: rotate(-90deg), but the screen is occupied with portrait size for landscape, therefore the screen is occupying extra space in 4 directions. Please suggest me any solution which will work definitely.

Omar
  • 32,302
  • 9
  • 69
  • 112

1 Answers1

0

Use @media tag (which I am less familiar with and only picked up on a few weeks ago). Two good articles on how this was done (read both completely as both have good answers)

forcing web-site to show in landscape mode only

Force “Landscape” orientation mode

Community
  • 1
  • 1