{ "id": "86988", "key": "TIMOB-7810", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-19T08:52:21.000+0000", "created": "2012-02-24T17:39:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tableviewrow", "qe-ios021312", "qe-testadded" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "15462", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "64173", "key": "TIMOB-3541", "fields": { "summary": "iOS: Implement Composite Layout Behavior Spec", "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": "Critical", "id": "1" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "15463", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "78299", "key": "TIMOB-4810", "fields": { "summary": "Update Horizontal/Vertical layouts to use the new Layout manager (& Composite rules)", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "15407", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "76285", "key": "TIMOB-4367", "fields": { "summary": "Android: Table View Row Memory Leak", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-19T08:52:21.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Details: Was doing regression testing and tried to run code from TIMOB-4367 on iOS. But, no rows appeared. \r\n\r\nSteps to reproduce:\r\n\r\n1. Run code on iOS:\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor:'#fff' });\r\n\r\nvar btn = Ti.UI.createButton({\r\n color: 'black', layout:'center',\r\n title: 'Create big table view'\r\n});\r\nwin.add(btn);\r\nwin.open();\r\nbtn.addEventListener('click', function() {\r\n var newWin = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout:'vertical'\r\n });\r\n var back = Ti.UI.createButton({\r\n color: 'black', top: 10,\r\n title: 'Back'\r\n });\r\n newWin.add(back);\r\n\r\n var tv = createBigTableView();\r\n newWin.add(tv);\r\n newWin.open();\r\n\r\n function clickListener() {\r\n back.removeEventListener('click', clickListener);\r\n newWin.close();\r\n tv.data = null;\r\n tv = null;\r\n newWin = null;\r\n back = null;\r\n }\r\n\r\n back.addEventListener('click', clickListener);\r\n});\r\n\r\nfunction createBigTableView() {\r\n var data = [];\r\n for (i = 1; i <= 1500; i++) {\r\n data.push(createCustomTableViewRow('RowsNMore', i));\r\n }\r\n return Ti.UI.createTableView({\r\n top:0, bottom:0, left:0, right:0,\r\n separatorColor: 'white',\r\n data: data\r\n });\r\n}\r\n\r\nfunction createCustomTableViewRow(label1text, label2text) {\r\n var row = Ti.UI.createTableViewRow({ className: 'customTVRow' });\r\n var vw = Ti.UI.createView({layout: 'vertical'});\r\n row.add(vw);\r\n vw.add(Ti.UI.createLabel({\r\n text: label1text, color: 'black',\r\n font: {fontSize: '9pt', fontWeight: 'bold'}\r\n }));\r\n vw.add(Ti.UI.createLabel({\r\n text: label2text, color: 'gray',\r\n font: {fontSize: '7pt', fontWeight: 'normal'}\r\n }));\r\n return row;\r\n}\r\n{code}\r\n\r\nActual: No red rows are displayed. See attachment.\r\nExpected: Should see 1500 rows like on Android. See attachment.", "attachment": [ { "id": "25915", "filename": "androidRows.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T17:54:01.000+0000", "size": 58808, "mimeType": "image/png" }, { "id": "25914", "filename": "iosRows.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-24T17:54:01.000+0000", "size": 29116, "mimeType": "image/png" }, { "id": "26110", "filename": "iosRows2.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T09:48:23.000+0000", "size": 58989, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: TableviewRow - Cannot run code from TIMOB-4367", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 1.8.1, 1.8.2.v20120223174636\r\nTitanium Studio, build: 1.0.9.201202141208\r\nxcode: 4.2\r\nDevice: iphone 4S Sprint (5.0.1)", "comment": { "comments": [ { "id": "185291", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Composite change renders rows, but still misplaced.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-06T17:38:20.000+0000", "updated": "2012-03-06T17:38:20.000+0000" }, { "id": "185701", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The code above has undefined behavior of placing a FILL height view inside a SIZE height view. Use this code to test that removes the undefined behavior\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor:'#fff' });\r\n\r\nvar btn = Ti.UI.createButton({\r\n color: 'black', layout:'center',\r\n title: 'Create big table view'\r\n});\r\nwin.add(btn);\r\nwin.open();\r\nbtn.addEventListener('click', function() {\r\n var newWin = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n layout:'vertical'\r\n });\r\n var back = Ti.UI.createButton({\r\n color: 'black', top: 10,\r\n title: 'Back'\r\n });\r\n newWin.add(back);\r\n\r\n var tv = createBigTableView();\r\n newWin.add(tv);\r\n newWin.open();\r\n\r\n function clickListener() {\r\n back.removeEventListener('click', clickListener);\r\n newWin.close();\r\n tv.data = null;\r\n tv = null;\r\n newWin = null;\r\n back = null;\r\n }\r\n\r\n back.addEventListener('click', clickListener);\r\n});\r\n\r\nfunction createBigTableView() {\r\n var data = [];\r\n for (i = 1; i <= 1500; i++) {\r\n data.push(createCustomTableViewRow('RowsNMore', i));\r\n }\r\n return Ti.UI.createTableView({\r\n top:0, bottom:0, left:0, right:0,\r\n separatorColor: 'white',\r\n data: data\r\n });\r\n}\r\n\r\nfunction createCustomTableViewRow(label1text, label2text) {\r\n var row = Ti.UI.createTableViewRow({ className: 'customTVRow' });\r\n var vw = Ti.UI.createView({layout: 'vertical',height:Ti.UI.SIZE, backgroundColor:\"red\"});\r\n row.add(vw);\r\n vw.add(Ti.UI.createLabel({\r\n text: label1text, color: 'black',\r\n font: {fontSize: '9pt', fontWeight: 'bold'}\r\n }));\r\n vw.add(Ti.UI.createLabel({\r\n text: label2text, color: 'gray',\r\n font: {fontSize: '7pt', fontWeight: 'normal'}\r\n }));\r\n return row;\r\n}\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-08T21:29:35.000+0000", "updated": "2012-03-09T15:03:55.000+0000" }, { "id": "185752", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hey Vishal,\r\n\r\nI ran your code using SDK build 2.0.0.v20120308234731 on iPhone 4S (5.0.1) and I am getting 1500 rows. But, the rows are not red and I don't see a back button. See attachment iosRows2.png", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T09:48:11.000+0000", "updated": "2012-03-09T09:53:31.000+0000" }, { "id": "185834", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Have updated the sample so that rows have red background", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T15:05:20.000+0000", "updated": "2012-03-09T15:05:20.000+0000" }, { "id": "185839", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Note to QE: After talking to Vishal, the main issue is that you cannot see the back button on iOS even though you can see it on Android; this is blocked by TIMOB-4810. The red background color is irrelevant and a misjudgment on my part.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-09T15:36:12.000+0000", "updated": "2012-03-09T15:36:12.000+0000" }, { "id": "185862", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull request #1616 fixes", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-10T00:56:36.000+0000", "updated": "2012-03-10T00:56:36.000+0000" }, { "id": "187052", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120319003254\r\nTitanium Studio, build: 2.0.0.201203182248\r\nxcode: 4.2\r\nDevice: iphone 4s Verizon (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-19T08:52:09.000+0000", "updated": "2012-03-19T08:52:09.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }