{ "id": "81679", "key": "TIMOB-5789", "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-02-10T00:29:00.000+0000", "created": "2011-10-17T15:01:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-10T00:29:00.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": "Setting the 'hasCheck' property on the row's click event causes the child elements of the row to disappear. This appears to happen with the newer CI builds. Also, the elements do not disappear at the time of click event. When another row is clicked, the elements on the previously clicked row disappear.\r\n\r\nWhen checked with the CI build 1.8.0.v20111008193843, the problem does not appear.\r\n\r\nSample Code:\r\n{noformat}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white'});\r\nvar section1 = Ti.UI.createTableViewSection({\r\n headerTitle:'Header 1'\r\n});\r\n\r\nvar createRow = function(name){\r\n var row = Ti.UI.createTableViewRow();\r\n row.add(Ti.UI.createLabel({color: 'green', text:'Row '+ name,height: 30, top:5, width: 80, left: 10}));\r\n row.add(Ti.UI.createImageView({ image: 'KS_nav_views.png',height: 30, top:5, width: 80, right: 40}));\r\n row.addEventListener('click', function(e){\r\n row.hasCheck = true;\r\n });\r\n return row;\r\n}\r\n\r\nfor (var i=0; i < 4; i++) {\r\n section1.add(createRow(i));\r\n}\r\n\r\nvar section2 = Ti.UI.createTableViewSection();\r\nfor (var i=4; i < 10; i++) {\r\n section2.add(createRow(i));\r\n}\r\n\r\nvar tv = Ti.UI.createTableView({\r\n data:[section1,section2]\r\n});\r\n\r\nwin.add(tv);\r\nwin.open();\r\n{noformat}", "attachment": [], "flagged": false, "summary": "iOS: setting the 'hasCheck' property of TableViewRow causes the child elements added to the row to disappear ", "creator": { "name": "sbhimavarapu", "key": "sbhimavarapu", "displayName": "Sandeep Bhimavarapu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhimavarapu", "key": "sbhimavarapu", "displayName": "Sandeep Bhimavarapu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Product: Mobile\r\nTitanium SDK: Mobile CI\r\nPlatform OS: iOS\r\nPlatform OS Version: 4.3", "comment": { "comments": [ { "id": "177855", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce in 1.9.0.46d2d6f.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T10:11:47.000+0000", "updated": "2012-01-03T10:11:47.000+0000" }, { "id": "178890", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue due to not being able to reproduce\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.8.0.1\r\nOSX Lion\r\niPod Touch OS 4.3.3, iPad 2 OS 5.0.1", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T11:01:16.000+0000", "updated": "2012-01-11T11:01:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }