{ "id": "63209", "key": "TIMOB-2577", "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": [ { "id": "11234", "name": "Release 1.6.0 M01", "archived": true, "released": true, "releaseDate": "2010-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:30.000+0000", "created": "2011-04-15T03:23:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:30.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}{html}", "attachment": [], "flagged": false, "summary": "Android: TableView Does Not S", "creator": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128821", "author": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}
Oops, sorry for the bad title, hit Enter before I wanted to.
\nIn Android 1.5.0 and in 1.5.0 update 1, a TableView with a\nsingle row does not display the table row. If another row is added,\nboth rows will appear.
\nSee this thread in the Q&A:
\n\nhttp://developer.appcelerator.com/question/76221/tableview-and-appe...
For QA: Fail case app.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#fff',\n fullscreen: false,\n exitOnClose: true\n});\n\nwin.open();\nvar tv =Ti.UI.createTableView({\n top: 0, left: 0, right: 0, height: 300,\n backgroundColor: 'yellow'\n});\n\nwin.add(tv);\n\ntv.appendRow( Ti.UI.createTableViewRow({color: 'black', title: 'First Row'}));\n\nvar btn = Ti.UI.createButton({\n top: 310, left: 20, right: 20, height: 40,\n title: 'Append row'\n});\nwin.add(btn);\nbtn.addEventListener('click',function(){\n tv.appendRow( Ti.UI.createTableViewRow({color: 'black', title: 'Appended Row'}));\n});
\n
\nIf you run that in the non-fixed version of the sdk, when the\nwindow loads you'll see a yellow box which is supposed to be a\ntableview with one row in it. It won't have show any rows. Only\nwhen you click the button to append a new row will you finally see\nthe first row (along with the one you just appended.)
\nWith the fixed version of the sdk, you'll see the first row\nright away when the window loads.
(from [032be3e5d322c6dc792d6a72f67854fc308f8443])\n[#2577 state:fixed-in-qa] set model dirty when\nappending first row \nhttps://github.com/appcelerator/titanium_mobile/commit/032be3e5d322...
Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d). G1 (1.6)\ndroid1 (2.2.1). saw the fail in 1.5.2 and the fix in 1.6.0.
\nVerified iOS 4.2.1 ipod touch 4GT