[TIMOB-13912] Blackberry: height doesn't work on views
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-21T18:09:38.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 10 BB, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
Components | BlackBerry |
Labels | module_layout, qe-testadded |
Reporter | Pedro Enrique |
Assignee | Pedro Enrique |
Created | 2013-05-18T00:00:20.000+0000 |
Updated | 2014-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();
Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/40
Need to create a back port pull request for 3_1_X which we can merge once it is unfrozen.
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
Re-opening to edit...