Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15706] TiAPI: win.orientationModes returns 1,2 in iOS while android returns 1,3

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2015-01-27T18:13:46.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsAndroid, iOS
Labelsn/a
Reporterjithinpv
AssigneeVishal Duggal
Created2013-11-13T05:59:09.000+0000
Updated2017-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();

Comments

  1. jithinpv 2014-08-08

    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
  2. Shameer Jan 2014-09-04

    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
  3. Vishal Duggal 2015-01-27

    These are platform constants exposed via titanium
  4. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source