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

iOS: Ti.Gesture.isPortrait() returns true even during landscape mode

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.1.0, Release 3.1.1
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Macbook Pro, OSX 10.7.5, iOS Simulator v. 6.0 (369.2). Ti: 3.1 GA

      Description

      Problem
      Ti.Gesture.isPortrait() doesn't work properly.

      Steps to reproduce
      1. Turn on application (PORTRAIT)
      2. Press home button
      3. Change orientation to LANDSCAPE
      4. Turn on application and console will show:

      Twice value TRUE for isPortrait()

      Test case

       
      var win = Ti.UI.createWindow();
       
      Ti.Gesture.addEventListener("orientationchange", function(e) {
      	console.log("Ti.Gesture.isPortrait() ---> " + Ti.Gesture.isPortrait());
      });
       
      Ti.Gesture.fireEvent("orientationchange");
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sko Matej
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code