[TIMOB-13951] BlackBerry: Allow containers to use Ti.UI.SIZE to size to labels and buttons
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-05-22T07:24:31.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 11 BB, 2013 Sprint 11, Release 3.2.0 |
| Components | BlackBerry |
| Labels | n/a |
| Reporter | Russell McMahon |
| Assignee | Russell McMahon |
| Created | 2013-05-22T07:22:31.000+0000 |
| Updated | 2014-06-19T12:43:22.000+0000 |
Description
Here is the test app
var win1 = Titanium.UI.createWindow({
backgroundColor:'#000'
});
var view1 = Titanium.UI.createView({
backgroundColor:'red',
width:Ti.UI.SIZE,
height:Ti.UI.SIZE
});
var label1 = Titanium.UI.createLabel({
backgroundColor:'blue',
color:'#999',
text:'Label Test',
font:{fontSize:20,fontFamily:'Helvetica Neue',fontStyle:'italic'},
width:Ti.UI.SIZE,
height:Ti.UI.SIZE
});
view1.add(label1);
win1.add(view1);
win1.open();
Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311122225 Titanium SDK, build: 3.2.0.v20131113094843 CLI: 3.2.0 Alloy: 1.3.0 BlackBerry Simulator: 10.2.0.1791 Ti.UI.SIZE is working on labels and buttons. Label gets and sets it's height and width to that of the view. Closing.