Skip to content

Commit

Permalink
lock portrait on ipad
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylukasavage committed Sep 7, 2011
1 parent f055dc4 commit a0e30b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/windows/main.js
Expand Up @@ -53,6 +53,9 @@
*/

Drupal.navWindow = Ti.UI.createWindow();
Drupal.navWindow.orientationModes = [Ti.UI.PORTRAIT];
Ti.UI.orientation = Ti.UI.PORTRAIT;

mainWindow = Ti.UI.createWindow({
backgroundImage: (isIpad()) ? 'images/home_ipad.png' : 'images/home.png',
title: 'Dashboard',
Expand Down
3 changes: 3 additions & 0 deletions tiapp.xml
Expand Up @@ -27,6 +27,9 @@
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
<icon>default_app_logo.png</icon>
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down

0 comments on commit a0e30b6

Please sign in to comment.