Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11740] BlackBerry: Titanium.UI.Window - orientationModes

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-02-21T22:48:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 04 BB, 2013 Sprint 04
ComponentsBlackBerry
Labelsqe-testadded
ReporterDan Tamas
AssigneeJosh Roesslein
Created2012-11-10T17:00:38.000+0000
Updated2013-10-23T23:15:26.000+0000

Description

Implement orientation modes for windows.

Acceptance Test

var win = Ti.UI.createWindow({
	orientationModes:[Titanium.UI.LANDSCAPE,Titanium.UI.PORTRAIT]
});

var label = Ti.UI.createLabel({text: 'Foobar'});
win.add(label);

win.open();
1. Run the above test case. 2. Try rotating the device. The UI should flip to the new orientation. 3. Verify all orientations (landscape & portrait) work. Note: reverse portrait not supported by BB. 4. Only use PORTRAIT for orientation modes and run app again. 5. Verify only PORTRAIT orientation is allowed. 6. Only use LANDSCAPE for orientation modes and run app again. 7. Verify only LANDSCAPE orientation is allowed.

Comments

  1. Pedro Enrique 2013-01-31

    Leaving this one on hold until Ti.UI.Window gets refactored. Right know it is trying to apply the lightweight/heavyweight window concept like android. But we're going to move away from that approach and use the native _AbstractPane_ control.

JSON Source