[TIMOB-8474] iOS: Ti.Gesture.getLandscape() and Ti.Gesture.getPortrait() return undefined instead of boolean
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 1.8.2, Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Christian Siegert |
Assignee | Unknown |
Created | 2012-04-01T02:40:13.000+0000 |
Updated | 2018-02-28T20:03:40.000+0000 |
Description
*Problem*
Ti.Gesture.getLandscape()
, Ti.Gesture.getPortrait()
, Ti.Gesture.landscape
and Ti.Gesture.portrait
all return undefined
instead of a boolean value.
*Test case*
Ti.API.info("Ti.Gesture.getLandscape(): " + Ti.Gesture.getLandscape());
Ti.API.info("Ti.Gesture.getPortrait(): " + Ti.Gesture.getPortrait());
Ti.API.info("Ti.Gesture.landscape: " + Ti.Gesture.landscape);
Ti.API.info("Ti.Gesture.portrait: " + Ti.Gesture.portrait);
Console output:
{noformat}
[INFO] Ti.Gesture.getLandscape(): undefined
[INFO] Ti.Gesture.getPortrait(): undefined
[INFO] Ti.Gesture.landscape: undefined
[INFO] Ti.Gesture.portrait: undefined
{noformat}
Confirmed bug on iPad 3, Platform & version: iOS 5.1
Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
confirmed on 3.2.3