[AC-2872] Adding label to a table view row doesnt come, scrolling the table view shows the label for a sec then goes away.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2011-10-20T12:12:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | tableview |
Reporter | manu ranjan |
Assignee | Paul Dowsett |
Created | 2011-08-16T07:07:30.000+0000 |
Updated | 2016-03-08T07:47:49.000+0000 |
Description
I just created a label and put that in table view row inside a for loop , the label is not coming on the table view .When i scroll the table i can see the label for a flash and then it goes away
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
modal: true
});
var title = [ 'one', 'two', '3' ], table_data = [];
for(var i=0;i<title.length;i++) {
var direction_label=Titanium.UI.createLabel({
color:'black',
font:{ fontWeight:"normal" },
left:10,
top:0,
text:title[i]
});
var thisRow = Ti.UI.createTableViewRow({
className:"directiondata",
layout:"vertical",
height:75
});
thisRow.add(direction_label);
table_data.push(thisRow);
}
var table = Titanium.UI.createTableView({data:table_data});
win.add(table);
win.open();
Attachments
File | Date | Size |
---|---|---|
code.rtf | 2011-08-16T07:07:30.000+0000 | 1306 |
Manu I cannot reproduce this issue. Running the above code works fine for me. Have you resolved it? Thanks
Closing resolved tickets due to inactivity.