{ "id": "105691", "key": "TIMOB-11894", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14625", "description": "2012 Sprint 24 API", "name": "2012 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-30T22:07:54.000+0000", "created": "2012-11-29T19:02:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "api", "module_tableview", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "23234", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "104987", "key": "TIMOB-11772", "fields": { "summary": "KitchenSink: Twitter - Last rows content disappears after device rotated to the landscape and vice versa on Android", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23182", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104987", "key": "TIMOB-11772", "fields": { "summary": "KitchenSink: Twitter - Last rows content disappears after device rotated to the landscape and vice versa on Android", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-17T11:10:53.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": "*Details:* If you dynamically add items to the TableView, subsequent items will not appear in the table. \r\n\r\n*This is a regression.* Bug does not appear in 2.1.4.GA and does not appear on iOS.\r\n\r\n*Steps to reproduce:*\r\n1. Add the following code to app.js:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'#000',\r\n\tlayout:'vertical'\r\n});\r\n\r\nvar message = Ti.UI.createTextField({\r\n hintText: 'Enter message',\r\n height: 100,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n\r\nmessage.addEventListener('return', function (evt) {\r\n if (!message.value) {\r\n return;\r\n }\r\n addMessage(message.value);\r\n message.value = '';\r\n message.focus();\r\n});\r\nwin.add(message);\r\n\r\nvar tableView = Ti.UI.createTableView({});\r\n\r\nwin.add(tableView);\r\n\r\nwin.open();\r\n\r\nfunction addMessage(message) {\r\n\t\r\n\tvar row = Ti.UI.createTableViewRow({});\r\n\t\r\n\tvar container = Ti.UI.createView({\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tbackgroundColor: '#fff',\r\n\t\tborderColor: '#ccc', borderWeight: 1\r\n\t});\r\n\t\r\n\tvar label = Ti.UI.createLabel({\r\n\t text: message,\r\n\t font: { fontSize: 12, fontWeight: 'bold' },\r\n\t height: 50\r\n\t})\r\n\t \r\n\tcontainer.add(label);\r\n\trow.add(container);\r\n\tif (tableView.data.length == 0) {\r\n tableView.appendRow(row);\r\n }\r\n else {\r\n tableView.insertRowBefore(0, row);\r\n }\r\n}\r\n{code}\r\n2. Install and launch app to an Android device\r\n3. Enter at least 3 messages\r\n\r\n*Actual:* On the S3, three or more messages will not be added to the TableView (see s3_3_0_X.png)\r\n\r\nOn the Droid 1, you will only see 1 message. Subsequent messages will not appear (see droid1_3_0_X.png)\r\n\r\n*Expected:* Adding messages should appear in the TableView (see 2_1_4_GA.png)", "attachment": [ { "id": "33763", "filename": "2_1_4_GA.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T19:02:18.000+0000", "size": 76809, "mimeType": "image/png" }, { "id": "33762", "filename": "droid1_3_0_X.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T19:02:18.000+0000", "size": 48327, "mimeType": "image/png" }, { "id": "33761", "filename": "s3_3_0_X.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-29T19:02:18.000+0000", "size": 76464, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TableView - If you dynamically add items to the TableView, subsequent items will not appear in the table", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 3.0.0.v20121128173200, 3.1.0.v20121128155800\r\nTitanium Studio, build: 3.0.0.201211281826\r\nDevices: Droid 1 (2.2.3), Samsung Galaxy S3 (4.0.4)", "comment": { "comments": [ { "id": "229366", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3502", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T20:11:07.000+0000", "updated": "2012-11-30T20:11:07.000+0000" }, { "id": "229369", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_0_X https://github.com/appcelerator/titanium_mobile/pull/3503", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-11-30T20:37:14.000+0000", "updated": "2012-11-30T20:37:14.000+0000" }, { "id": "229761", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.0.v201211300200208 on Galaxy S3 4.0.4", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T01:21:01.000+0000", "updated": "2012-12-04T01:21:01.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }