[TIMOB-12555] BlackBerry Layout is messed up
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-02T01:45:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.1.0, 2013 Sprint 03 BB, 2013 Sprint 03 |
Components | BlackBerry |
Labels | n/a |
Reporter | Pedro Enrique |
Assignee | Pedro Enrique |
Created | 2013-02-01T21:18:59.000+0000 |
Updated | 2014-06-19T12:43:01.000+0000 |
Description
Problem:
Currently all the controls that we see in the screen, tested with KS, look tiny and cut off. Also, dimensions are not working, dp, dip, etc..Test code:
var win = Ti.UI.createWindow();
var b3 = Titanium.UI.createButton({
color:'#fff',
top: 100,
backgroundColor:'red',
width: '200dp',
height: '60dip',
title: 'Hello Button'
});
win.add(b3);
win.open();
The likely cause is not providing the correct screen density to layout. Right now it is hard coded to 96 which is probably too small. To resolve this issue we will need to query the screen information and set the correct density.
Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/20
Josh, values passed in, such as "dp" where getting ignored. Worked with Russ to figure out the issue. It is working as expected in my PR
Verified the issue & layout is proper now Environment: Ti Studio : 3.1.0.201302221817 Ti BB SDK : 3.1.0.v20130227112907 Mac OSX : 10.8.2 win 7 Win 8 BB simulator : 10.0.10.261 Dev alpha B 10 device