Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-4888

iOS: app does not rotate to landscape if it is launched while the device is in landscape

    Details

      Description

      When you hold the device in landscape and the launch the app it fires up in portrait as it should but it does not rotate to landscape as it should. It does rotate to landscape after you rotate the device to portrait and then back to landscape.

      If launching the app on a device that is in landscape, the app should launch in portrait and then rotate to landscape. You can see this using the mail app.

      Step 1: run the code below
      Step 2: hold the device in landscape before launching the app (this is the same for the simulator, you just need to rotate it to landscape before the app launches)
      Step 3: launch the app
      Step 4: notice that the app does not rotate to landscape after it launches
      Step 5: rotate the device to portrait and then back to landscape
      Step 6: notice that the app rotates to landscape

      "app.js"

      var win = Ti.UI.createWindow({
      	backgroundColor: 'blue',
      	orientationModes: [Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]
      });
       
      var label = Ti.UI.createLabel({
      	text: "I am a string"
      });
      win.add(label);
       
      win.open();
      

      Associated Helpdesk Ticket

      http://appc.me/c/APP-724825

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                blainhamon Blain Hamon
                Reporter:
                jalter Jon Alter
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-4153
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration