[TIMOB-4893] iOS: iPad window rotates to the wrong landscape when the app is opened
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-08-05T13:11:40.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-31 |
Components | iOS |
Labels | regression |
Reporter | Jon Alter |
Assignee | Eric Merriman |
Created | 2011-08-04T15:54:42.000+0000 |
Updated | 2014-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();
Verified fixed with iPad 2 4.3.2, Ti SDK 1.8.0 rf003367e.