Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13971] BlackBerry : Changes in the DPI are needed to keep the parity of controls layout across platforms

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-16T03:06:00.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.1.2, Release 3.2.1, Release 3.3.0
ComponentsBlackBerry
Labelsmodule_layout, qe-testadded, regression, sdk-bb
ReporterLokesh Choudhary
AssigneePedro Enrique
Created2013-05-23T21:47:48.000+0000
Updated2014-02-19T18:26:38.000+0000

Description

Description: 1.Create a BB app from the code below:

var win = Ti.UI.createWindow({
	backgroundColor:'white',
});

var button1 = Ti.UI.createButton({
	title:'HardCoded',
	top:30,
	height:40,
	width:60
});

var button2 = Ti.UI.createButton({
	title:'percentage',
	top: '25%',
	width:'45%'
});

var button3 = Ti.UI.createButton({
	title:'Size',
	//top:70
	height:Ti.UI.SIZE,
	width:Ti.UI.SIZE
});

var lbl = Ti.UI.createLabel({
	text:'Test Label',
	top:'70%',
	font:{fontSize:20},
	height:Ti.UI.SIZE,
	width:Ti.UI.SIZE
});

win.add(button1);
win.add(button2);
win.add(button3);
win.add(lbl);
win.open();
2. Build & run the app on BB device/simulator 3. Run the same app on an iphone device/simualator Actual Result: 1. The controls layout & the size vary according to the platform Expected Result: 1. The controls ahould have parity across platforms for layout & size

Attachments

FileDateSize
Screen Shot 2013-05-23 at 2.43.12 PM.png2013-05-23T21:47:48.000+000053785
Screen Shot 2013-05-23 at 2.47.02 PM.png2013-05-23T21:47:48.000+000093679

Comments

  1. Pedro Enrique 2013-06-04

    PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/75
  2. Priya Agarwal 2013-07-19

    Closing as Fixed. Verified with Environment: Studio: 3.1.2.201307171817 Titanium SDK:3.1.2.v20130718094558 acs:1.0.3 alloy:1.1.3 npm:1.3.2 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:Blackberry-Z10(v 10.0.10.261),iPhone Simulator(v6.0), Nexus 7(v4.1) Xcode: 4.5.1 blackberry SDK: 10.1.0.1020
  3. Olga Romero 2013-12-14

    Reopened for Appcelerator Studio, build: 3.2.0.201312121648 Titanium SDK, build:3.2.0.v20131212122847 ├── acs@1.0.10 ├── alloy@1.3.0-cr ├── npm@1.3.2 ├── titanium@3.2.0-cr3 └── titanium-code-processor@1.1.0-cr2 *note* it is a regression against Titanium SDK 3.1.3.GA

    Actual result

    No label "Test Label" is visible.
  4. Russell McMahon 2013-12-15

    Olga showed this one to me. I think this actually might be a font issue.
  5. Pedro Enrique 2013-12-16

    PR for 3.2.x https://github.com/appcelerator/titanium_mobile_blackberry/pull/195
  6. Pedro Enrique 2013-12-16

    PR for master https://github.com/appcelerator/titanium_mobile_blackberry/pull/196
  7. Russell McMahon 2013-12-16

    Looked over PR and it looks good. Resolving ticket so GL can test.

JSON Source