Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13912] Blackberry: height doesn't work on views

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-21T18:09:38.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 BB, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsBlackBerry
Labelsmodule_layout, qe-testadded
ReporterPedro Enrique
AssigneePedro Enrique
Created2013-05-18T00:00:20.000+0000
Updated2014-06-19T12:43:11.000+0000

Description

Height on views is always FILL Here is the problem: https://github.com/appcelerator/titanium_mobile_blackberry/blob/3_1_X/src/tibb/NativeControlObject.cpp#L587 Test code:
var win = Titanium.UI.createWindow({
	
});

var parent = Ti.UI.createView({
    width: '100',
    height: '100',
    backgroundColor: 'red'
});
  
var child = Ti.UI.createView({
	height: 50,
	width: 50,
	top: 25,
	left: 25,
	backgroundColor: 'green'
});
  
parent.add(child);
win.add(parent);
win.open();

Comments

  1. Pedro Enrique 2013-05-18

    Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/40
  2. Josh Roesslein 2013-05-18

    Need to create a back port pull request for 3_1_X which we can merge once it is unfrozen.
  3. Lokesh Choudhary 2013-05-20

    Verified the fix & the height property works as expected. Environment: Ti Studio : 3.1.1.201305150313 Ti BB SDK : 3.1.1.v20130517185716 Mac OSX : 10.8.2 win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88 Q10 Simulator : 10.1.0.1720 Q10 Dev alpha C device running 10.1.0.138
  4. Josh Roesslein 2013-05-21

    Re-opening to edit...

JSON Source