[TIMOB-15706] TiAPI: win.orientationModes returns 1,2 in iOS while android returns 1,3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2015-01-27T18:13:46.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | Android, iOS |
Labels | n/a |
Reporter | jithinpv |
Assignee | Vishal Duggal |
Created | 2013-11-13T05:59:09.000+0000 |
Updated | 2017-03-23T22:41:34.000+0000 |
Description
Run the following code:
Expected result:
Alert should show the same value in iOS and android
Actual result
Alert shows different values in iOS and android
Test case
var win = Titanium.UI.createWindow({
backgroundColor:'#ffff',
orientationModes:[Ti.UI.PORTRAIT, Ti.UI.UPSIDE_PORTRAIT]
});
win.addEventListener('open', function(){
alert("orientation:"+win.orientationModes);
});
win.open();
Issue reproduces Titanium Studio, build: 3.3.0.201407100905 Titanium SDK version 3.3.0.GA CLI version 3.3.0, device: HTC Desire X (HT35XLY01791) Android 4.1.1 Targeting Android SDK: 20
Issue reproduces with 3.1.3 and 3.4.0 GA Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 6.1 iOS iPhone Simulator: 6.1
These are platform constants exposed via titanium
Closing ticket as Won't Fix with reference to the above comments.