{ "id": "149812", "key": "TIMOB-19232", "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": "16919", "description": "Critical updates", "name": "Release 4.1.1", "archived": true, "released": true, "releaseDate": "2015-07-15" }, { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-17T22:47:07.000+0000", "created": "2015-07-20T21:26:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-08-17T22:47:12.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": "h6.Issue Description\r\nA listView which contains a headerView or footerView and a ListSection disappear at the time to swipe window back. \r\n\r\nh6.Steps to Reproduce\r\n1. Navigate from Page1 to page Page2\r\n2. Swipe from left end of screen to half of screen. And cancel the swipe by moving back to left end of the screen. \r\n3. All the contents of the headerView/footerView disappear. Screenshot attached.\r\n\r\nh6.Sample Code\r\n{code}\r\nvar createCustomView = function(title) {\r\n var view = Ti.UI.createView({\r\n backgroundColor: '#222',\r\n height: 40\r\n });\r\n var text = Ti.UI.createLabel({\r\n text: title,\r\n left: 20,\r\n color: '#fff'\r\n });\r\n view.add(text);\r\n return view;\r\n};\r\n \r\nvar rows = [];\r\nfor (var i = 0; i < 5; i++) {\r\n rows.push({ properties: { title: '\\u263B Row '+ i }});\r\n}\r\n \r\nvar win = Ti.UI.createWindow({\r\n title: 'Window',\r\n backgroundColor: 'red',\r\n navBarHidden: false\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Open Blue Window' \r\n});\r\n \r\nbutton.addEventListener('click', function(){\r\n var win3 = Ti.UI.createWindow({\r\n title:\"Blue Window\",\r\n backgroundColor:\"blue\"\r\n });\r\n var ls = Ti.UI.createListSection({\r\n items: rows\r\n });\r\n var lv = Ti.UI.createListView({\r\n height: Ti.UI.FILL, width:Ti.UI.FILL,\r\n headerView: createCustomView('Header View'),\r\n footerView: createCustomView('Footer View'),\r\n contentInsets: { top: 64, bottom: 60 },\r\n sections: [ls]\r\n });\r\n win3.add(lv);\r\n nav.openWindow(win3);\r\n});\r\n\r\nwin.add(button);\r\nvar nav = Ti.UI.iOS.createNavigationWindow({ window: win });\r\nnav.open();\r\n{code}", "attachment": [ { "id": "56191", "filename": "iPad_SwipeHeaderView.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-20T21:18:56.000+0000", "size": 165377, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: headerView/footerView in ListView disappears on half swipe back", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 3.5.1.GA, 4.1.0.v20150724170127 & 4.2.0.v20150710092422\r\niOS 8.4 (iPad/iPhone)", "closedSprints": [ { "id": 451, "state": "closed", "name": "2015 Sprint 16 SDK", "startDate": "2015-08-01T00:30:05.052Z", "endDate": "2015-08-15T00:30:00.000Z", "completeDate": "2015-08-17T05:55:00.386Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "360009", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T04:37:35.000+0000", "updated": "2015-08-17T04:37:35.000+0000" }, { "id": "360115", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified headerView and footerView in ListView does not disappear if you swipe midway.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 4.1.1.201507141126\r\nAppc CLI NPM: 4.1.0-2\r\nAppc CLI Core: 4.1.3-2\r\nArrow: 1.2.26\r\nSDK: 4.1.1.v20150816214206\r\nNode: v0.10.38\r\nOS: Yosemite (10.10.4)\r\nXcode: 6.4\r\nDevices: iphone 6 plus (8.3), ipad 3 (8.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T22:33:08.000+0000", "updated": "2015-08-17T22:46:45.000+0000" }, { "id": "360117", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to fix my comment.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T22:46:09.000+0000", "updated": "2015-08-17T22:46:09.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }