{ "id": "175500", "key": "TIMOB-28109", "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": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-17T10:06:52.000+0000", "created": "2020-09-03T12:44:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ListView", "grouped", "ios", "searchbar", "section" ], "versions": [], "issuelinks": [ { "id": "58748", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174853", "key": "TIMOB-27819", "fields": { "summary": "iOS: Incorrect listSection headerTitle spacing in iOS 13+", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-06-17T10:06:52.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": "Since the ListView search bar was moved to the {{UISearchController}}, there is a bug that makes the layout of the list section \"collapse\". This is quite critical for us, because it destroys our layout.\r\n\r\nTo debug: The following log is displayed in the console, indicating the underlaying issue:\r\n{code}\r\n[DEBUG] Presenting view controllers on detached view controllers is discouraged .\r\n{code}\r\n\r\nProbably also reproducible in common sample apps and test suites that include a list view + search. Sample code to reproduce:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar listView = Ti.UI.createListView({ style: Ti.UI.iOS.ListViewStyle.GROUPED });\r\nlistView.sections = [Ti.UI.createListSection({ items: [{ properties: { itemId: 1, height: 43, title: 'Test item 1' } }, { properties: { itemId: 2, height: 43, title: 'Test item 2' } }] })];\r\nlistView.searchView = Ti.UI.createSearchBar();\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "67936", "filename": "ListViewSearchGroupTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-10T17:43:19.000+0000", "size": 874, "mimeType": "application/x-javascript" }, { "id": "67524", "filename": "Simulator Screen Shot - iPhone 11 Pro - 2020-09-04 at 10.12.45 Kopie.jpg", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-04T08:16:35.000+0000", "size": 191863, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "iOS: Top section in grouped ListView disappears when tapping SearchBar or on orientation change", "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": null, "comment": { "comments": [ { "id": "457070", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue happens with Ti.UI.iOS.ListViewStyle.GROUPED not with Ti.UI.iOS.ListViewStyle.PLAIN", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-29T00:55:35.000+0000", "updated": "2020-09-29T00:55:35.000+0000" }, { "id": "457074", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yep thats correct! :) Have you found the root cause already? If you create a sample native project and compare it, you can likely see what's causing it.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-29T13:05:32.000+0000", "updated": "2020-09-29T13:05:32.000+0000" }, { "id": "458731", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue will happen if the app changes orientation too. Looks like a relayout issue.\r\n\r\nYou can work-around it by setting the first section's \"headerTitle\" to \" \" (a string with a space), but it will add a slight amount of height to the top.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-02T02:35:48.000+0000", "updated": "2021-06-02T02:35:48.000+0000" }, { "id": "458756", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12879", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-10T04:12:18.000+0000", "updated": "2021-06-10T04:12:18.000+0000" }, { "id": "458789", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-06-16T20:07:24.000+0000", "updated": "2021-06-16T20:07:24.000+0000" }, { "id": "458793", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "backport merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-06-17T10:06:46.000+0000", "updated": "2021-06-17T10:06:46.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }