[TIMOB-11740] BlackBerry: Titanium.UI.Window - orientationModes
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-21T22:48:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 04 BB, 2013 Sprint 04 |
Components | BlackBerry |
Labels | qe-testadded |
Reporter | Dan Tamas |
Assignee | Josh Roesslein |
Created | 2012-11-10T17:00:38.000+0000 |
Updated | 2013-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.
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.