[TIMOB-3046] TableViewRow not rendering corectly on android
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2012-08-29T15:27:21.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android, defect, rendering, tableview, tableviewrow |
| Reporter | doto |
| Assignee | Neeraj Gupta |
| Created | 2011-04-15T03:35:24.000+0000 |
| Updated | 2017-03-10T18:18:02.000+0000 |
Description
When you have a TableViewRow with a sub view it has a padding on the left and right:
http://img.skitch.com/20110204-eyjc8iaj7ebkc11b9rk6drbn5.png" alt=
"alt text">
Also when zou scroll this row off the view it disapears when it comes back.
http://img.skitch.com/20110204-funb32q1q5usjcqddesjdtum32.png"
alt="alt text">
Code:
var tabGroup = Titanium.UI.createTabGroup();
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var tab1 = Titanium.UI.createTab({
icon:'KS_nav_views.png',
title:'Tab 1',
window:win1
});
var data = [];
for(var i=0; i<20; i++){
var tvr = Titanium.UI.createTableViewRow({
className : 'datarow'
});
var view = Titanium.UI.createView({
backgroundColor: "#cfc"
});
var label = Titanium.UI.createLabel({
text: "Line "+ i,
height: 100
});
view.add(label);
tvr.add(view);
data.push(tvr);
}
var tv = Titanium.UI.createTableView({
data:data
});
win1.add(tv);
tabGroup.addTab(tab1);
tabGroup.open();
Assigning to Don for triage.
@doto which version of the product did you test with?
I've testet it with Titanium SDK version: 1.5.1 (12/16/10 16:25 16bbb92))
I've done a little more testing. The rows are not disappearing now, but the order seems to change every time I scroll up an down. Strange.
Here's the code:
.. and the log output:
Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120828153312, unable to reproduce the issue. Ticket marked as resolved.
Closing ticket as the issue cannot be reproduced.