[TIMOB-979] iOS: TableView -Vertical Layout: wrong positioning on load & blurred after scroll
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-06-22T11:33:34.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | core |
| Reporter | Markus Gerlach |
| Assignee | Neeraj Gupta |
| Created | 2011-04-15T02:40:40.000+0000 |
| Updated | 2017-03-09T22:42:22.000+0000 |
Description
maybe it's discussable but i think it's a bug because there are
no properties marked as "must set".
when loading the attached tableview the text is fine but the second
label (l2) in the first and third row is not in the row/view and
has no bottom:1. rows with 2 or more lines of text in the first
label (l1) will be displayed correct.
in the given example code the positions are corrected after
scrolling up and down but then some parts of the text are
blurred.
example code (based on the KS-example):
edit: uploaded code, formatting doesn't work.
Attachments
| File | Date | Size |
|---|---|---|
| test.js | 2011-04-15T02:40:40.000+0000 | 1030 |
Test Code
var win = Ti.UI.createWindow({backgroundColor:'white'}); var tv = Ti.UI.createTableView({minRowHeight:20}); var text = []; text[0] = 'I am a short sentence.'; text[1] = 'I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.'; text[2] = 'I am a short sentence.'; text[3] = 'I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.I am a long sentence that is repeated the most in order to take up the most amount of room in a table view row.'; var data = []; for (var i=0;i<4;i++) { var row = Ti.UI.createTableViewRow({height:'auto'}); var textView = Ti.UI.createView({ height:Ti.UI.SIZE, layout:'vertical', top:1, bottom:1 }); var l1 = Ti.UI.createLabel({ text:text[i], height:'auto', font:{fontSize:13,fontWeight:'normal'}, }); textView.add(l1); var l2 = Ti.UI.createLabel({ text:'dorem', height:'auto', font:{fontSize:10,fontWeight:'bold'} }); textView.add(l2); row.add(textView); data.push(row); } tv.setData(data); win.add(tv); win.open();Closing ticket as the issue cannot be reproduced.