{ "id": "131115", "key": "AC-1059", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-07-15T15:16:50.000+0000", "created": "2014-05-31T19:47:18.000+0000", "labels": [ "ios", "listview" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:24.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": "When using the iOS-Property separatorInsets on spacing the ListView-separator to the left, the spacing is applied on both ListItem (as expected) and ListSection-title (not expected).\r\n\r\nSimple test case:\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow();\r\nvar list = Ti.UI.createListView({\r\n\ttop: 20,\r\n\tseparatorInsets: {\r\n\t\tleft: 77\r\n\t}\r\n});\r\nvar section = Ti.UI.createListSection({\r\n\theaderTitle : \"My Section\"\r\n});\r\n\r\nlist.setSections([section]);\r\n\r\nwin.add(list);\r\nwin.open();\r\n{code}\r\n\r\nSummary: We need to set the separatorInsets only on the ListItem itself, not on its parent Section.", "attachment": [ { "id": "48506", "filename": "Bildschirmfoto 2014-05-31 um 21.46.35.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-05-31T19:47:18.000+0000", "size": 146763, "mimeType": "image/png" } ], "flagged": false, "summary": "ListView iOS: SeparatorInsets applied on both ListItems & ListSections", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti-SDK: 3.2.3.GA", "comment": { "comments": [ { "id": "314079", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\nWe have tested this issue with sample code has provided . [according to doc|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListView-property-separatorInsets] “The inserts for list view separators (applies to all cell)”. That means spacing will be applied on both List Item and List Section. Its not SDK bug. \r\n\r\nh3.Testing Environment:\r\nTitanium SDK: 3.2.3.GA, 3.3.0.RC\r\nTitanium CLI: 3.3.0 –rc,\r\niOS SDK: 7.1,\r\nOS X Version: 10.9.3,\r\nAppcelerator Studio: 3.2.3\r\n\r\nh3. Steps to Reproduce:\r\n 1.Create a Classic project.\r\n 2.Paste this code in app.js file.\r\n 3.Run this code with testing environment.\r\n\r\n{code:title:app.js}\r\nvar win = Ti.UI.createWindow();\r\nvar list = Ti.UI.createListView({\r\n\ttop : 20,\r\n\tseparatorInsets : {\r\n\t\tleft : 77\r\n\t}\r\n});\r\nvar section = Ti.UI.createListSection({\r\n\theaderTitle : \"My Section\"\r\n});\r\n\r\nlist.setSections([section]);\r\n\r\nwin.add(list);\r\nwin.open(); \r\n{code}\r\nThanks.\r\n\r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-15T06:56:02.000+0000", "updated": "2014-07-15T15:15:12.000+0000" }, { "id": "314147", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello! AFAIK, this is no bug. If you want, we can add it as new feature. If you want it as new feature, please explain the details about this feature. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-15T15:16:50.000+0000", "updated": "2014-07-15T15:16:50.000+0000" }, { "id": "314959", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "OK, didn't know. I will code a custom section, thank you!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-07-20T18:20:24.000+0000", "updated": "2014-07-20T18:20:24.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }