Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12555] BlackBerry Layout is messed up

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-02-02T01:45:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 03 BB, 2013 Sprint 03
ComponentsBlackBerry
Labelsn/a
ReporterPedro Enrique
AssigneePedro Enrique
Created2013-02-01T21:18:59.000+0000
Updated2014-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();

Expected

You should see a button, normal size, in the window

Current result:

The button is tiny and cut off

Comments

  1. Josh Roesslein 2013-02-01

    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.
  2. Pedro Enrique 2013-02-01

    Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/20
  3. Pedro Enrique 2013-02-01

    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
  4. Lokesh Choudhary 2013-02-27

    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

JSON Source