{ "id": "137166", "key": "AC-1016", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-09-17T07:59:32.000+0000", "created": "2014-09-25T13:53:38.000+0000", "labels": [ "TCSupportTriage", "blank_rows", "custom_template", "listsection", "listview", "template", "titanium" ], "versions": [], "issuelinks": [ { "id": "45854", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "138270", "key": "ALOY-1248", "fields": { "summary": "iOS: ListView blank during redraw", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello.\r\n\r\nI have a ListView with custom ListItems. For this I use the templates as specified in the docs. When I add my custom rows to the listsection present in the listview, the listview sometimes shows blank rows instead of my own rows. The following test causes this. I added a refreshcontrol to show what happens when refreshing. Sometimes when you refresh and do setItems again, the list is fine.\r\n\r\nh3. index.xml:\r\n{code}\r\n\r\n\t\r\n\t \r\n\t \r\n\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t \r\n\t\r\n\r\n{code}\r\n\r\nh3. index.tss:\r\n{code}\r\n\"ListView\":{\r\n\tlayout: \t\t\t'vertical',\r\n\tscrollType: \t\t'vertical',\r\n\twidth: \t\t\t\t'100%',\r\n\theight: \t\t\tTi.UI.FILL,\r\n\tcontentHeight: \t\tTi.UI.SIZE,\r\n\tcontentWidth: \t\t\"100%\",\r\n\thorizontalWrap: \tfalse,\r\n\r\n},\r\n\"ListView[platform=ios]\":{\r\n\tseparatorStyle:\t\tTi.UI.iPhone.ListViewSeparatorStyle.NONE,\r\n\tseparatorColor:\t\t\"#000\"\r\n}\r\n\".cell\":{\r\n\twidth: \"47.5%\",\r\n\theight: Ti.UI.SIZE,\r\n\tlayout: 'vertical',\r\n\ttop: 5\r\n},\r\n\"Label\":{\r\n\tfont: {\r\n\t\tfontSize: 11,\r\n\t},\r\n\twidth: \"90%\",\r\n\ttextAlign: Ti.UI.TEXT_ALIGNMENT_LEFT,\r\n\tcolor: \"#646464\",\r\n}\r\n{code}\r\n\r\nh3. index.js:\r\n{code}\r\nfunction refreshList() {\r\n var items = [];\r\n for(var i = 0; i < 15; i++) {\r\n var item = {};\r\n items.push(item);\r\n }\r\n $.listSection.setItems(items);\r\n $.refreshControl.endRefreshing();\r\n}\r\n\r\nrefreshList();\r\n$.index.open();\r\n{code}\r\n\r\nThe blank rows dont really have a pattern where they exactly appear. Also sometimes when you scroll they dissappear or appear on random places when a blank row was already present.\r\n\r\nRegards,\r\nPatrick van Vuuren", "attachment": [], "flagged": false, "summary": "ListView randomly shows blank rows on section.setItems()", "creator": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7.1, Titanium 3.3.0/3.2.3 GA, Alloy 1.4.0, iOS Simulator iPhone + iPad", "comment": { "comments": [ { "id": "327116", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue still persists in iOS 8 / Ti SDK 3.4.0 / Alloy 1.5.0.\r\n\r\nIs it possible this issue could be looked at? The rows are actually there but not visible. It's not like there is actually no row.\r\n\r\nI also made a video ([https://vimeo.com/105630553]) for my application to see whats happening.\r\n ", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-07T08:46:23.000+0000", "updated": "2014-10-07T08:46:23.000+0000" }, { "id": "328762", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is anyone looking at this? It is a serious issue in my iOS application that is already live.", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-21T07:12:35.000+0000", "updated": "2014-10-21T07:12:35.000+0000" }, { "id": "333331", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I have this issue as well and it disappears when I remove:\r\n\r\n{code}\r\nseparatorStyle: Ti.UI.iPhone.ListViewSeparatorStyle.NONE\r\n{code}\r\n\r\nIt only reproduces on devices, about 8 out of 10 times.\r\n\r\n[~mpmiranda] [~ingo] could you have a look at this? The workaround is to not use {{separatorColor}} instead and set it to the backgroundColor of the list items.\r\n\r\nThis issue seems to be the same as TC-4126", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-11-22T13:36:55.000+0000", "updated": "2014-11-22T13:40:45.000+0000" }, { "id": "333332", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Fokke, \r\n\r\nThanks for finding out the problem.\r\nIf I define the backgroundColor to white and leave the seperatorStyle/seperatorColor black it is fixed?\r\n\r\nRegards,\r\nPatrick", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-22T16:15:37.000+0000", "updated": "2014-11-22T16:15:37.000+0000" }, { "id": "333343", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~Serfenia] just don't use {{seperatorStyle}} and instead use {{seperatorColor}} to hide the line by giving it the same color as the {{ListItem}}'s {{backgroundColor}} or {{transparent}}.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-11-23T12:04:16.000+0000", "updated": "2014-11-23T12:04:16.000+0000" }, { "id": "333626", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Fokke Zandbergen,\r\n\r\nI can verify that works as a solution. \r\n\r\nTi SDK 3.4.1\r\nAlloy 1.5.1\r\niOS 8.1", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-25T14:55:34.000+0000", "updated": "2014-11-25T14:56:06.000+0000" }, { "id": "342971", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": ".", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-11T21:49:52.000+0000", "updated": "2015-02-11T21:49:52.000+0000" }, { "id": "344138", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can confirm, that in 3.5.0 the problem exists. here's a screenshot: http://cl.ly/image/0w2B3v1z3S0A", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-02-23T10:52:14.000+0000", "updated": "2015-02-23T10:52:14.000+0000" }, { "id": "344146", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I am unable to reproduce this problem using the test app included in the description on this ticket. I also cannot reproduce the issue on the linked ticket.\r\n\r\nTested with\r\n\r\nTiSDK 3.5.0.GA and 4.0.0 (master build)\r\nAlloy 1.5.1, 1.6.0-dev, and 1.7.0-dev\r\niOS 8.1 simulator\r\nTwo different Macs (core i7 w/16g and core i5 w/8g)\r\n\r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-23T14:49:45.000+0000", "updated": "2015-02-23T14:49:45.000+0000" }, { "id": "347253", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "It's reproducible with childTemplates mixed horizontal and vertical layouts", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-03-25T07:19:22.000+0000", "updated": "2015-03-25T07:19:22.000+0000" }, { "id": "347254", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~benutzername] can you please add a test case?", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2015-03-25T07:39:20.000+0000", "updated": "2015-03-25T07:39:20.000+0000" }, { "id": "347256", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sorry, I deleted all my work with specific layouts and refactored it.\r\n\r\nI will have a look if I can create a simple one", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-03-25T07:41:44.000+0000", "updated": "2015-03-25T07:41:44.000+0000" }, { "id": "360824", "author": { "name": "Claus Stilborg", "key": "claus stilborg", "displayName": "Claus Stilborg", "active": true, "timeZone": "Europe/Copenhagen" }, "body": "I see the same behaviour on 4.1, it seems to be random", "updateAuthor": { "name": "Claus Stilborg", "key": "claus stilborg", "displayName": "Claus Stilborg", "active": true, "timeZone": "Europe/Copenhagen" }, "created": "2015-08-23T22:01:29.000+0000", "updated": "2015-08-23T22:01:29.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }