{ "id": "122040", "key": "TIMOB-15667", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" } ], "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": "2014-03-14T21:43:21.000+0000", "created": "2013-11-04T19:22:45.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "custom", "hascheck", "ios7", "layout", "tableviewrow" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T22:05:34.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": "A TableViewRow (with custom layout) hasCheck don't works correctly in iOS7.\r\n\r\nThe hasCheck property changed (I see in log), but the symbol remains in screen.\r\n\r\nThe check symbol appears and disappear, but I need tap in the row many times. The check symbol don't match with the hasCheck value.\r\n\r\ncustom_tableviewrow.xml\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code} \r\n\r\ncustom_tableviewrow.js\r\n\r\n{code:javascript} \r\nvar args = arguments[0] || {};\r\n$.row.hasCheck = false;\r\n$.titleLabel.text = args.get(\"name\");\r\n$.image.image = args.get(\"imagePath\");\r\nfunction select(e) {\r\n if($.row.hasCheck == false) {\r\n $.row.setHasCheck(true);\r\n } else {\r\n $.row.setHasCheck(false);\r\n }\r\n}\r\n{code} \r\n\r\ncustom_tableviewrow.tss\r\n{code} \r\n\"#row\": {\r\n layout:\"horizontal\", \r\n width:Ti.UI.FILL,\r\n height:\"40dp\",\r\n selectedBackgroundColor:\"#ccc\",\r\n selectedColor:\"#000\"\r\n}\r\n \r\n\"#image\": {\r\n width:\"40dp\", height:\"40dp\"\r\n}\r\n \r\n\".brandDefault\": {\r\n image: \"/images/brand_default.png\",\r\n defaultImage: \"/images/brand_default.png\" \r\n},\r\n \r\n\"#titleLabel\": {\r\n textAlign:\"left\",\r\n width:Ti.UI.SIZE,\r\n height:Ti.UI.FILL,\r\n backgroundColor:\"transparent\",\r\n color:\"#000\"\r\n}\r\n{code}\r\n\r\nIf I try use only the title property in row (removing the layout) it's works fine. :/\r\n", "attachment": [], "flagged": false, "summary": "iOS: TableViewRow (with custom layout) hasCheck don't works correctly", "creator": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "etruta", "key": "etruta", "displayName": "Eduardo Silva", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "SDK version 3.1.3.GA iOS 7.0.3: Simulaor & Device", "comment": { "comments": [ { "id": "278478", "author": { "name": "sjacq", "key": "sjacq", "displayName": "Sebastien JACQ", "active": true, "timeZone": "Europe/Berlin" }, "body": "In addition to the post from Eduardo. \r\nThe value of the hasCheck property is correctly changed for the row.\r\nIf you scroll the table enough to put the clicked row out of sight and scrollback, the mark appears.\r\nA solution to correct this is to re-render the table with *table.setData(table.data)*", "updateAuthor": { "name": "sjacq", "key": "sjacq", "displayName": "Sebastien JACQ", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-06T19:17:27.000+0000", "updated": "2013-11-06T19:17:27.000+0000" }, { "id": "284384", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Same here. Only, in my case, the check mark seems to be white.\r\n\r\nRow with no backgroundColor declared:\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/be72c944-8149-4291-8516-1703eadbe541/00000254.png!\r\n\r\nRow with a blue backgroundColor declared:\r\n!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/c8bbb364-a873-4de0-b96b-befb9593e3a0/00000253.png!\r\n\r\ntintColor and color have no effect.\r\n{code}\r\n\"#tableRow\":{\r\n\theight: 65,\r\n\ttintColor: \"#000000\",\r\n\tcolor: \"#000000\"\r\n}\r\n{code}\r\nTitanium SDKs: 3.3.0.v20131127225644\r\nXcode: 5.0.2 (build 5A3005)\r\niOS SDKs: 7.0.3\r\nTitanium CLI\r\n CLI Version = 3.2.0\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-12-16T00:31:25.000+0000", "updated": "2013-12-16T00:32:28.000+0000" }, { "id": "297370", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "@[~sfeather]\r\nThere is no support for TintColor on TableViewRow and ListItem. I have created another ticket to track that issue\r\n\r\nTIMOB-16628\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-14T21:41:16.000+0000", "updated": "2014-03-14T21:41:27.000+0000" }, { "id": "297371", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is the Common JS Code I used to test. Going to mark the issue as can not reproduce\n{code}\nTi.UI.setBackgroundColor('#000');\nvar win = Ti.UI.createWindow({\n backgroundColor: 'black',\n fullscreen: true,\n title: 'TableView Demo'\n});\n\nvar row = Ti.UI.createTableViewRow({\n layout:\"horizontal\", \n width:Ti.UI.FILL,\n height:\"40dp\",\n selectedBackgroundColor:\"#ccc\",\n selectedColor:\"#000\"\n});\n \nvar imageAvatar = Ti.UI.createImageView({\n width:\"40dp\", height:\"40dp\",\n image:'/images/flower.jpg'\n});\nrow.add(imageAvatar);\n \nvar labelUserName = Ti.UI.createLabel({\n textAlign:\"left\",\n width:Ti.UI.SIZE,\n height:Ti.UI.FILL,\n backgroundColor:\"transparent\",\n color:\"#000\",\n text:'FRED SMITH'\n});\nrow.add(labelUserName);\n \nrow.hasCheck = false;\n\nrow.addEventListener('click',function(e){\n if(e.row.hasCheck == false) {\n Ti.API.info('TRUE');\n e.row.setHasCheck(true);\n } else {\n Ti.API.info('FALSE');\n e.row.setHasCheck(false);\n }\n})\n\nvar tableView = Ti.UI.createTableView({\n backgroundColor:'white',\n data:[row],\n});\n\nwin.add(tableView);\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-14T21:42:21.000+0000", "updated": "2014-03-14T21:42:21.000+0000" }, { "id": "297373", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please attach complete test case to reproduce issue if it exists", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-14T21:43:21.000+0000", "updated": "2014-03-14T21:43:21.000+0000" }, { "id": "414531", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:05:34.000+0000", "updated": "2017-03-21T22:05:34.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }