Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-990] table view row objects shift onload [REGRESSION ISSUE]

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:40:53.000+0000
Updated2011-04-17T01:54:53.000+0000

Description

var win = Titanium.UI.createWindow();

var users = ['netpro2k', 'netpro2kdev',
'netpro2kggt1','GabeNewell','kaspm'];

var sections = [];

var likeSection = Ti.UI.createTableViewSection({headerTitle: 'asdadsaas asdasd'});
var likeRow = Ti.UI.createTableViewRow({height: 71,
selectionStyle:Titanium.UI.iPhone.TableViewCellSelectionStyle.NONE,
className: 'likeRow'});
for(var i = 0; i<5; i++) {
likeRow.add(Ti.UI.createImageView({
url : 'http://s3.amazonaws.com/adb_qa/">http://s3.amazonaws.com/adb_qa/' + users[i] + '/avatar.png',
height:45,
width:45,
left:15+(i*56),
top: 12,
borderColor: 'black',
borderWidth: 1
})); } likeSection.add(likeRow);
sections.push(likeSection);

var tableView = Ti.UI.createTableView({data: sections, style:
Titanium.UI.iPhone.TableViewStyle.GROUPED});
win.add(tableView);
win.open();

Comments

  1. Jeff Haynie 2011-04-15

    (from [905edbe24bd27b5ef2cb63e5975f9e965c7f04dc]) Closes #980 , Closes #990 - our container view should be filling the content view bounds (which has a 0 origin), not the frame, which may not have a 0 origin (IE, when in a grouped view). http://github.com/appcelerator/titanium_mobile/commit/905edbe24bd27b5ef2cb63e5975f9e965c7f04dc"> http://github.com/appcelerator/titanium_mobile/commit/905edbe24bd27...

JSON Source