Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4893] iOS: iPad window rotates to the wrong landscape when the app is opened

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-08-05T13:11:40.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-31
ComponentsiOS
Labelsregression
ReporterJon Alter
AssigneeEric Merriman
Created2011-08-04T15:54:42.000+0000
Updated2014-06-19T12:46:40.000+0000

Description

Set the orientationModes for the main window to Landscape Left and Right. If you launch the app when holing the device in landscape left, the window rotates to landscape right (upside down). This worked correctly in 1.6.2, but it is broken in 1.7.2. Step 1: run the code below Step 2: hold the device on its right side (landscape left) Step 3: launch the app Step 4: notice that the window rotates upside down Step 5: kill the app Step 6: hold the device on its left side (landscape right) Step 7: launch the app Step 8: notice that the window rotates right side up
var win = Ti.UI.createWindow({
	backgroundColor: 'blue',
	orientationModes: [ Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT]
});

var label = Ti.UI.createLabel({
	text: "I am a string"
});
win.add(label);

win.open();

Associated Helpdesk Ticket

http://appc.me/c/APP-757474

Comments

  1. Eric Merriman 2011-08-16

    Verified fixed with iPad 2 4.3.2, Ti SDK 1.8.0 rf003367e.

JSON Source