{ "id": "123032", "key": "TIMOB-15846", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-12-19T18:37:28.000+0000", "created": "2013-11-28T10:25:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ListViews", "supportTeam" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T22:56: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": "In a listView, view disappears when click on some listView row.\r\n\r\n*Steps to Reproduce*\r\n1. Create a new Titanium project.\r\n\r\n2. Copy and paste the below code :\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\nvar myTemplate = {\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.View',\r\n\t\tbindId : 'pic',\r\n\t\tproperties : {\r\n\t\t\twidth : '15dp',\r\n\t\t\theight : '15dp',\r\n\t\t\tleft : 5,\r\n\t\t\tbackgroundColor : 'red'\r\n\t\t}\r\n\t}, {\r\n\t\ttype : 'Ti.UI.Label',\r\n\t\tbindId : 'info',\r\n\t\tproperties : {\r\n\t\t\tcolor : 'black',\r\n\t\t\tfont : {\r\n\t\t\t\tfontFamily : 'Arial',\r\n\t\t\t\tfontSize : '20dp',\r\n\t\t\t\tfontWeight : 'bold'\r\n\t\t\t},\r\n\t\t\tleft : '60dp',\r\n\t\t\ttop : 0,\r\n\t\t}\r\n\t}, {\r\n\t\ttype : 'Ti.UI.Label',\r\n\t\tbindId : 'es_info',\r\n\t\tproperties : {\r\n\t\t\tcolor : 'gray',\r\n\t\t\tfont : {\r\n\t\t\t\tfontFamily : 'Arial',\r\n\t\t\t\tfontSize : '14dp'\r\n\t\t\t},\r\n\t\t\tleft : '60dp',\r\n\t\t\ttop : '25dp',\r\n\t\t}\r\n\t}]\r\n};\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttemplates : {\r\n\t\t'template' : myTemplate\r\n\t},\r\n\tdefaultItemTemplate : 'template'\r\n});\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection({\r\n\theaderTitle : 'Fruits / Frutas'\r\n});\r\nvar fruitDataSet = [{\r\n\tinfo : {\r\n\t\ttext : 'Apple'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Manzana'\r\n\t}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Banana'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Banana'\r\n\t}\r\n}];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar vegSection = Ti.UI.createListSection({\r\n\theaderTitle : 'Vegetables / Verduras'\r\n});\r\nvar vegDataSet = [{\r\n\tinfo : {\r\n\t\ttext : 'Carrot'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Zanahoria'\r\n\t}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Potato'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Patata'\r\n\t}\r\n}];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n\r\nvar grainSection = Ti.UI.createListSection({\r\n\theaderTitle : 'Grains / Granos'\r\n});\r\nvar grainDataSet = [{\r\n\tinfo : {\r\n\t\ttext : 'Corn'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Maiz'\r\n\t}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Rice'\r\n\t},\r\n\tes_info : {\r\n\t\ttext : 'Arroz'\r\n\t}\r\n}];\r\ngrainSection.setItems(grainDataSet);\r\nsections.push(grainSection);\r\n\r\nlistView.setSections(sections);\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\n3. Run it on iOS7 simulator/device and tap on some row of a listView.\r\n\r\n*Expected Behavior* : The view should appears even on clicking the row.\r\n\r\n*Actual behavior* : The 'Red' view disappeared from the listView row on click.\r\n\r\n*Note* : Please find the attached screenshot of the actual behavior.", "attachment": [ { "id": "44256", "filename": "Screen Shot 2013-11-28 at 3.50.21 PM.png", "author": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-28T10:25:28.000+0000", "size": 36085, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: View disappears from the listView when click on the listView row", "creator": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpathak", "key": "mpathak", "displayName": "Meenakshi Pathak", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7\r\nTiSDK 3.1.1GA, 3.1.2GA, 3.1.3.GA, 3.2.0CI", "comment": { "comments": [ { "id": "285208", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is native ios behavior. When a TableViewCell is selected/highlighted, iOS automatically clears the backgroundColor of all subviews. This has been reported before.\r\n\r\nThe simple workaround is to use a backgroundImage instead of a backgroundColor\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-19T18:37:28.000+0000", "updated": "2013-12-19T18:37:28.000+0000" }, { "id": "415177", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T22:56:00.000+0000", "updated": "2017-03-22T22:56:00.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }