{ "id": "134976", "key": "AC-1298", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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-11-04T18:21:32.000+0000", "created": "2014-08-19T21:03:49.000+0000", "labels": [ "TCSupportTriage", "listView", "separator" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:41.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Test app:\r\n{code:javascript}\r\nvar template = {\r\n properties: {\r\n name: 'template'\r\n },\r\n childTemplates: [{\r\n type: 'Ti.UI.View',\r\n bindId: 'container',\r\n childTemplates: [{\r\n type: 'Ti.UI.Label',\r\n bindId: 'info'\r\n }]\r\n }]\r\n};\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems([\r\n {info: {text: 'Cod'}, properties: {active: false}, container: {}},\r\n {info: {text: 'Haddock'}, properties: {active: false}, container: {}},\r\n {info: {text: 'Fish'}, properties: {active: false}, container: {}},\r\n {info: {text: 'Clam'}, properties: {active: false}, container: {}}\r\n]);\r\nvar list = Ti.UI.createListView({\r\n templates: {template: template},\r\n defaultItemTemplate: 'template'\r\n});\r\nlist.appendSection(section);\r\nlist.addEventListener('itemclick', function(e) {\r\n var item = e.section.getItemAt(e.itemIndex);\r\n item.active = !item.active;\r\n item.container.backgroundColor = item.active? 'orange': 'white';\r\n e.section.updateItemAt(e.itemIndex, item);\r\n});\r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.add(list);\r\nwin.open();\r\n{code}\r\n\r\nSteps to reproduce:\r\n1. Click third row\r\n2. Click third row again\r\n\r\nAs result separator between second and third row disappear. Bug is reproducible on device only.", "attachment": [ { "id": "50571", "filename": "IMG_0118.PNG", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-08-19T21:05:32.000+0000", "size": 28062, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: ListView separator disappear when set background to custom template view", "creator": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "subtasks": [], "reporter": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "environment": "iPod 5 with iOS 7.0\r\nmaster titanium SDK", "comment": { "comments": [ { "id": "319418", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nWe have tested this issue with our sample code. Its not a bug. Its working as we expected.\r\n\r\n*TESTING ENVIRONMENT:*\r\n Titanium SDK: 3.3.0.GA and 3.2.3.GA\r\n Titanium CLI: 3.3.0\r\n OS X Version: 10.9.3\r\n iOS Device: iPod 5G\r\n iOS Version: 7.1.2\r\n Android API Level: 17 and 19\r\n \r\n*STEPS TO REPRODUCE:*\r\n a) Create a simple project.\r\n b) Update this code in app.js\r\n c) Run this with testing environment\r\n d) Click third row\r\n e) Click third row again\r\n \r\n*TESTING CODE:*\r\n\r\n{code}var template = {\r\n\tproperties : {\r\n\t\tname : 'template'\r\n\t},\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.View',\r\n\t\tbindId : 'container',\r\n\t\tchildTemplates : [{\r\n\t\t\ttype : 'Ti.UI.Label',\r\n\t\t\tbindId : 'info'\r\n\t\t}]\r\n\t}]\r\n};\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems([{\r\n\tinfo : {\r\n\t\ttext : 'Cod'\r\n\t},\r\n\tproperties : {\r\n\t\tactive : false\r\n\t},\r\n\tcontainer : {}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Haddock'\r\n\t},\r\n\tproperties : {\r\n\t\tactive : false\r\n\t},\r\n\tcontainer : {}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Fish'\r\n\t},\r\n\tproperties : {\r\n\t\tactive : false\r\n\t},\r\n\tcontainer : {}\r\n}, {\r\n\tinfo : {\r\n\t\ttext : 'Clam'\r\n\t},\r\n\tproperties : {\r\n\t\tactive : false\r\n\t},\r\n\tcontainer : {}\r\n}]);\r\nvar list = Ti.UI.createListView({\r\n\ttemplates : {\r\n\t\ttemplate : template\r\n\t},\r\n\tdefaultItemTemplate : 'template'\r\n});\r\nlist.appendSection(section);\r\nlist.addEventListener('itemclick', function(e) {\r\n\tvar item = e.section.getItemAt(e.itemIndex);\r\n\titem.active = !item.active;\r\n\titem.container.backgroundColor = item.active ? 'orange' : 'white';\r\n\te.section.updateItemAt(e.itemIndex, item);\r\n});\r\n\r\nvar win = Ti.UI.createWindow();\r\nwin.add(list);\r\nwin.open();{code}\r\n\r\n*TESTING RESULTS:*\r\n\r\nSeparator between second and third row will not disappear in iPod device and also simulator.\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-20T04:30:16.000+0000", "updated": "2014-11-04T18:21:24.000+0000" }, { "id": "324640", "author": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "body": "I experience the same issue, device (iOS 8), simulator (7.1.2), and Ti SDK 3.3.0. \r\n\r\nIt happens when you update a templated item row using the .updateItemAt() method.\r\n\r\nI found a workaround, which is to de-select the row with the list view's .deselectItem() before calling .updateItemAt().", "updateAuthor": { "name": "bcproductions", "key": "bcproductions", "displayName": "Ed", "active": true, "timeZone": "America/Havana" }, "created": "2014-09-19T04:09:14.000+0000", "updated": "2014-09-19T04:19:22.000+0000" }, { "id": "330998", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "All ok on iOS 8.x. Look like the problem is 7.x specific.", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-11-06T12:10:23.000+0000", "updated": "2014-11-06T12:10:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }