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.
Asked
Active
Viewed 618 times
0
-
check out this cordova plugin https://github.com/cogitor/PhoneGap-OrientationLock – Banik Feb 23 '16 at 09:51
1 Answers
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)

Community
- 1
- 1