Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7855] iOS: Ti.Gesture.landscape and Ti.Gesture.portrait are undefined

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-11-09T05:57:16.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sRelease 6.1.0
Componentsn/a
Labelsparity
ReporterCarl Orthlieb
AssigneeHans Knöchel
Created2012-02-29T18:27:29.000+0000
Updated2016-11-23T18:48:36.000+0000

Description

1. Unpack the attached application and run it on Android. Note that as you rotate the view, the Ti.Gesture.landscape and Ti.Gesture.portrait properties change. 2. Run the same application on iOS. EXPECTED RESULT: same values for landscape and portrait as Android. ACTUAL RESULT: both values are "undefined" no matter the device orientation. NB: if this was previously working in prior versions this could break existing applications if they are recompiled with 1.8.2.

Attachments

FileDateSize
TIMOB-7855.zip2012-02-29T18:28:19.000+00002322816

Comments

  1. Hans Knöchel 2016-11-02

    PR: https://github.com/appcelerator/titanium_mobile/pull/8575 Unit-Test: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/10
  2. Samir Mohammed 2016-11-23

    Verified Fixed, was able to view the changes to Ti.Gesture.landscape and Ti.Gesture.portrait and IOS no longer stated "undefined" when the device was rotated; tested on both a Android and IOS Device. *Environement*
       Appcelerator Command-Line Interface, version 6.0.0
       Iphone 6+ (Version 9.3.4)
       Android 7.0 (Google Nexus 6P)
       Operating System Name: Mac OS X El Capitan
       Operating System Version: 10.11.6
       Node.js Version: 4.6.0
       npm: 4.2.8
       Titanium CLI Version: 5.0.10
       Titanium SDK Version: 6.1.0.v20161123033537
       Xcode: 8.0
       Appcelerator Studio: 4.8.0.201611121409
       

JSON Source