[TIMOB-990] table view row objects shift onload [REGRESSION ISSUE]
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:54:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | n/a |
Reporter | Nolan Wright |
Assignee | Blain Hamon |
Created | 2011-04-15T02:40:53.000+0000 |
Updated | 2011-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();
(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...