[TIMOB-15083] iOS7: Orientation: App started in landscape mode does not rotate to portrait in first attempt
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-09-10T01:42:11.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | ios7, qe-3.1.3 |
Reporter | Paras Mishra |
Assignee | Blain Hamon |
Created | 2013-09-09T11:27:25.000+0000 |
Updated | 2017-03-17T17:59:23.000+0000 |
Description
iOS: Orientation: App started in landscape mode does not rotate to portrait in first attempt.
Steps to reproduce:
1. Hold the device in landscape mode and run the app.
var win = Ti.UI.createWindow({
backgroundColor : 'blue'
});
win.orientationModes =[Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];
var label = Ti.UI.createLabel({
text : "I am TIMOB-4888 test."
});
win.add(label);
win.open();
2. Rotate the device to portrait.
Expected:
App should rotate to portrait mode.
Actual:
App doesn't rotate to portrait. Rotate the device to landscape then again portrait, app rotates to portrait in 2nd attempt.
Moving to mark invalid. This is caused by the info.plist confusing the OS by insisting on portrait while the window asks for landscape. Once the info.plist's orientations had been updated to allow for landscape on boot, the issue no longer happened.
Info.plist needs to reflect window orientation on boot for test to be valid.
Closing ticket as invalid.