Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13951] BlackBerry: Allow containers to use Ti.UI.SIZE to size to labels and buttons

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-05-22T07:24:31.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 11 BB, 2013 Sprint 11, Release 3.2.0
ComponentsBlackBerry
Labelsn/a
ReporterRussell McMahon
AssigneeRussell McMahon
Created2013-05-22T07:22:31.000+0000
Updated2014-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();

Comments

  1. Samuel Dowse 2013-11-14

    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.

JSON Source