{ "id": "63678", "key": "TIMOB-3046", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-08-29T15:27:21.000+0000", "created": "2011-04-15T03:35:24.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "rendering", "tableview", "tableviewrow" ], "versions": [], "issuelinks": [ { "id": "20445", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:18:02.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

When you have a TableViewRow with a sub view it has a padding on\nthe left and right:

\n

\n\"alt

\n

Also when zou scroll this row off the view it disapears when it\ncomes back.

\n

\n

Code:

\n
\nvar tabGroup = Titanium.UI.createTabGroup();\nvar win1 = Titanium.UI.createWindow({  \n    title:'Tab 1',\n    backgroundColor:'#fff'\n});\nvar tab1 = Titanium.UI.createTab({  \n    icon:'KS_nav_views.png',\n    title:'Tab 1',\n    window:win1\n});\n\n\nvar data = [];\nfor(var i=0; i<20; i++){\n    var tvr = Titanium.UI.createTableViewRow({\n        className : 'datarow'\n    });\n    var view = Titanium.UI.createView({\n        backgroundColor: \"#cfc\"\n    });\n    var label = Titanium.UI.createLabel({\n        text: \"Line \"+ i,\n        height: 100\n    });\n    view.add(label);\n    tvr.add(view);\n    data.push(tvr);\n}\n\nvar tv = Titanium.UI.createTableView({\n    data:data\n});\n\nwin1.add(tv);\ntabGroup.addTab(tab1);  \ntabGroup.open();\n
{html}", "attachment": [], "flagged": false, "summary": "TableViewRow not rendering corectly on android", "creator": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129927", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Don for triage.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:25.000+0000", "updated": "2011-04-15T03:35:25.000+0000" }, { "id": "129928", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@doto which version of the product did you test with?

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:25.000+0000", "updated": "2011-04-15T03:35:25.000+0000" }, { "id": "129929", "author": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've testet it with Titanium SDK version: 1.5.1 (12/16/10 16:25\n16bbb92))

{html}", "updateAuthor": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:25.000+0000", "updated": "2011-04-15T03:35:25.000+0000" }, { "id": "129930", "author": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've done a little more testing. The rows are not disappearing\nnow, but the order seems to change every time I scroll up an down.\nStrange.

\n

Here's the code:

\n
\n \nvar data = [];\nfor(var i=0; i<20; i++){
\n
\n\n\n
\n
\n
\nvar tt = &quot;Line &quot;+i;\nvar len = 80 + Math.round(Math.random()*200);\nvar label= &quot;&quot;;\nwhile(label.length &lt; len) label += &quot; &quot; + tt;\n\nTitanium.API.info(label);\nvar tvr = Titanium.UI.createTableViewRow({\n    className : 'datarow'\n});\nvar view = Titanium.UI.createView({\n    backgroundColor: &quot;#cfc&quot;,\n    height: &quot;auto&quot;\n});\nvar label = Titanium.UI.createLabel({\n    text: label\n});\nview.add(label);\ntvr.add(view);\ndata.push(tvr);\n
\n
\n\n\n
\n}\n\n
\nvar tv = Titanium.UI.createTableView({\n\n
\n
\ndata:data\n
\n
\n\n\n
\n});\n
\n

\n

.. and the log output:

\n
\n

[INFO] [631,741] Line 0 [INFO] [515,1256] Line 1 [INFO] [122,1378] Line 2 [INFO] [69,1447] Line 3 [INFO] [61,1508] Line 4 [INFO] [21,1529] Line 5 [INFO] [24,1553] Line 6 [INFO] [29,1582] Line 7 [INFO] [15,1597] Line 8 [INFO] [26,1623] Line 9 [INFO] [26,1649] Line 10 [INFO] [28,1677] Line 11 [INFO] [21,1698] Line 12 [INFO] [21,1719] Line 13 [INFO] [21,1740] Line 14 [INFO] [23,1763] Line 15 [INFO] [23,1786] Line 16 [INFO] [17,1803] Line 17 [INFO] [31,1834] Line 18 [INFO] [28,1862] Line 19

\n
{html}", "updateAuthor": { "name": "doto", "key": "doto", "displayName": "doto", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:25.000+0000", "updated": "2011-04-15T03:35:25.000+0000" }, { "id": "216923", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120828153312, unable to reproduce the issue. Ticket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-29T15:27:21.000+0000", "updated": "2012-08-29T15:27:21.000+0000" }, { "id": "411217", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:18:02.000+0000", "updated": "2017-03-10T18:18:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }