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

iOS: iPad window rotates to the wrong landscape when the app is opened

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 1.7.2
    • Fix Version/s: Sprint 2011-31
    • Component/s: iOS
    • Labels:
    • Environment:

      Worked correctly:
      TiSDK 1.6.2
      iPad 2 4.3.2

      Incorrect Behavior:
      TiSDK 1.7.2
      iPad 2 4.3.2

      Description

      Set the orientationModes for the main window to Landscape Left and Right. If you launch the app when holing the device in landscape left, the window rotates to landscape right (upside down).

      This worked correctly in 1.6.2, but it is broken in 1.7.2.

      Step 1: run the code below
      Step 2: hold the device on its right side (landscape left)
      Step 3: launch the app
      Step 4: notice that the window rotates upside down
      Step 5: kill the app
      Step 6: hold the device on its left side (landscape right)
      Step 7: launch the app
      Step 8: notice that the window rotates right side up

      "app.js"

      var win = Ti.UI.createWindow({
      	backgroundColor: 'blue',
      	orientationModes: [ 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-757474

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              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-4157
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code