Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15083] iOS7: Orientation: App started in landscape mode does not rotate to portrait in first attempt

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-09-10T01:42:11.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
Labelsios7, qe-3.1.3
ReporterParas Mishra
AssigneeBlain Hamon
Created2013-09-09T11:27:25.000+0000
Updated2017-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.

Comments

  1. Blain Hamon 2013-09-10

    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.
  2. Blain Hamon 2013-09-10

    Info.plist needs to reflect window orientation on boot for test to be valid.
  3. Lee Morris 2017-03-17

    Closing ticket as invalid.

JSON Source