[AC-2020] table view scrolling for complex rows (with solution)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-02-11T22:46:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | scroll, tableView, tableViewRow |
Reporter | Sameeh Harfoush |
Assignee | Shak Hossain |
Created | 2013-02-01T11:01:18.000+0000 |
Updated | 2016-03-08T07:40:58.000+0000 |
Description
ok, after a full day of debugging, as usual when working with titanium, i found a bug with scroll table view. the below function creates my row for a scroll table view. now if you put the titleLbl and arrowImage directly in the row (not in the contView), the table kinect scroll doesnt work. i.e when u swipe, the table doesn't keep on scrolling. BUT if you put the titleLbl and arrowImage in the contView below and then add the contView in the TableViewRow, all works fine...
var getHashtagRow = function(feed) {
var row = Ti.UI.createTableViewRow({
hashTag : feed.hashTag,
id : feed.id,
className : 'datarow'
});
var titleLbl = Ti.UI.createLabel({
text : feed.title,
left : 90,
top : 20,
bottom : 20,
color : 'black',
font : {
fontFamily : 'STC-Bold',
fontSize : 33
}
});
var arrowImage = Ti.UI.createImageView({
image : '/images/ht_unselect.png',
height : 38,
width : 38,
left : 30
});
var contView = Ti.UI.createView({
width : Ti.UI.FILL,
height : Ti.UI.FILL,
backgroundColor : 'red'
});
contView.add(titleLbl);
contView.add(arrowImage);
row.add(contView);
return row;
}
Can you please provide a runnable sample? If ignored, the [JIRA Ticket Checklist](http://docs.appcelerator.com/titanium/latest/#!/guide/How_to_Submit_a_Bug_Report-section-29004732_HowtoSubmitaBugReport-JIRATicketChecklist) describes how under "Description" field.
Closing due to inactivity. I'd be happy to reopen once a test case have been added, if possible please add your graphic assets (e.g. _ht_unselect.png_ ) to replicate what you are seeing. Jira checklist doc was posted above, thanks.
Closing due to inactivity and not reproducible.