{ "id": "169860", "key": "TIMOB-25330", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-09-22T11:25:20.000+0000", "created": "2017-09-21T18:02:25.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "xcode9" ], "versions": [], "issuelinks": [ { "id": "55995", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "169849", "key": "TIMOB-25332", "fields": { "summary": "iOS 11: ListView broken due to behavior-changes in UITableView", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-08-06T17:41:11.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 upgrading to Xcode 9, the Titanium.UI.iOS.TableViewStyle of GROUPED no longer has the correct spacing. As you can see in the screenshots, the top spacing is correct, but subsequent \"sections\" are not spaced properly from the previous section.\r\n\r\nThis is happening in my app, but also happening in the KitchenSink app (screenshot included also)", "attachment": [ { "id": "63337", "filename": "Bildschirmfoto 2017-09-21 um 22.32.09.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-21T20:32:42.000+0000", "size": 212169, "mimeType": "image/png" }, { "id": "63336", "filename": "j23-table-grouped-broken.png", "author": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-21T18:00:08.000+0000", "size": 114497, "mimeType": "image/png" }, { "id": "63335", "filename": "j23-table-grouped-expected.jpeg", "author": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-21T18:00:15.000+0000", "size": 247114, "mimeType": "image/jpeg" }, { "id": "63334", "filename": "kitchensink-table-grouped-broken.png", "author": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-21T18:00:18.000+0000", "size": 68322, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS 11: Sections in grouped Ti.Ui.ListView not properly spaced", "creator": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "environment": "macOS Sierra 10.12.6\r\nAppcelerator Studio 4.9.1\r\nTitanium SDK 6.2.1.GA\r\nXcode 9", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428278", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks valid, see screenshot (iOS 10.3.1 / 11):\r\n\r\n !Bildschirmfoto 2017-09-21 um 22.32.09.png|thumbnail! \r\n\r\nDoes not happen with native Xcode, so we'll investigate it!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-21T20:35:59.000+0000", "updated": "2017-09-21T20:35:59.000+0000" }, { "id": "428287", "author": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "body": "For what it's worth, this doesn't seem to be specifically an iOS 11 issue. It has only happened since I have done new builds after installing the new Xcode.\r\n\r\nFor example, the current version of my app that is in the App Store has the correct TableView.GROUPED spacing on my device, which is running iOS 11.", "updateAuthor": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-21T22:57:11.000+0000", "updated": "2017-09-21T22:57:11.000+0000" }, { "id": "428318", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I checked it. It's actually a behavioral change when building for iOS 11 with Xcode 9: We return a section-header-height of 0 if the section does not have a header title in it. Previous to iOS 11, this still applied spacing to the section, but iOS 11 will actually put a 0px spacing between them. \r\n\r\nThere is a property called {{UITableViewAutomaticDimension}} which is recommended as the default-value these days. Using that one, we get a proper spacing again (although it still looks a bit less then what you had before - around 3-5px). Not sure if we should restore the old behavior (custom height for iOS 11+), or apply the {{UITableViewAutomaticDimension}} constant instead of 0 to align with the native behavior.\r\n\r\nFrom a developer's perspective, what do you think? I prefer option b).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-22T09:22:31.000+0000", "updated": "2017-09-22T09:22:31.000+0000" }, { "id": "428322", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Solved it! It's related to TIMOB-25332 which is caused by the UITableView changes on iOS 11. It's a three-line fix that set's the \"estimated height\" to it's default, so it has parity with iOS < 11. We will provide a fix for both tickets today, so please follow the other ticket for updates, thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-22T11:25:20.000+0000", "updated": "2017-09-22T11:25:20.000+0000" }, { "id": "428330", "author": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "body": "Thank you so much Hans! Worked great for me.", "updateAuthor": { "name": "matthewlberg", "key": "matthewlberg", "displayName": "Matt Berg", "active": true, "timeZone": "America/Chicago" }, "created": "2017-09-22T13:00:35.000+0000", "updated": "2017-09-22T13:00:35.000+0000" }, { "id": "428331", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": ":-)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-22T13:07:56.000+0000", "updated": "2017-09-22T13:07:56.000+0000" }, { "id": "440017", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:11.000+0000", "updated": "2018-08-06T17:41:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }