[TIMOB-11741] BlackBerry: Landscape orientation limits the width of the subviews to 768px wide like the app would be portrait.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-05-26T17:30:25.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 3.2.0 |
| Components | BlackBerry |
| Labels | qe-closed-3.2.0, qe-testadded |
| Reporter | Dan Tamas |
| Assignee | Josh Roesslein |
| Created | 2012-11-10T17:10:54.000+0000 |
| Updated | 2014-02-20T00:41:34.000+0000 |
Description
If we change the app to run in landscape mode by adding
* tag
the subviews will be limited to a max width of 768, like the app would be in portrait mode.
<aspectRatio>landscape</aspectRatio>
to the *app_root/build/blackberry/bar-descriptor.xml* inside the *
var win = Ti.UI.createWindow({
backgroundColor:'#f00'
});
win.open();
var view = Ti.UI.createView({
top:50,
left:0,
width:1280,
height:100,
backgroundColor:'#00f'
});
win.add(view);
Result attached.
Attachments
| File | Date | Size |
|---|---|---|
| capture-3.png | 2012-11-10T17:10:54.000+0000 | 60558 |
Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311160316 Titanium SDK, build: 3.2.0.v20131117001643 CLI: 3.2.0-alpha Alloy: 1.3.0 BlackBerry Simulator: 10.2.0.1791 Rotating the simulator displayed the blue bar fully across the screen. Must add
into the tiapp.xml to allow orientation of the application. Closing.