{ "id": "175968", "key": "TIMOB-28323", "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": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": null, "resolutiondate": null, "created": "2021-01-19T14:17:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" }, { "id": "21129", "name": "Release 9.2.2", "archived": false, "released": true, "releaseDate": "2020-10-29" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-22T20:49:03.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": "h5.Description\r\n\r\nWhen running the below code on an iPhone 12 mini there is a gap between the status bar and the toolbar element. This is only seen on a iPhone 12 mini and is most likely due to that device having a differing status bar and safe area top inset size (see [here|https://useyourloaf.com/blog/iphone-12-screen-sizes/] and [here|https://twitter.com/steipete/status/1316482397312090118?lang=en])\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : \"test\",\r\n\tbackgroundColor : '#fff',\r\n\textendSafeArea : false\r\n});\r\nTi.UI.iOS.setStatusBarBackgroundColor(\"#00AEE0\");\r\nvar toolbar = Ti.UI.createToolbar({\r\n\tbarColor : 'blue',\r\n\ttitle : \"Toolbar\",\r\n\ttop : 0\r\n});\r\nwin.add(toolbar);\r\nwin.open(); \r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the code above to an existing app.js\r\n2. Build to an iPhone 12 mini simulator or device\r\n\r\nh5.Actual\r\n\r\nGap between statusbar and top UI element\r\n\r\nh5.Expected\r\n\r\nNo gap", "attachment": [ { "id": "67771", "filename": "Simulator Screen Shot - iPhone 12 mini - 2021-01-19 at 14.20.09.png", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-01-19T14:20:28.000+0000", "size": 61994, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Gap between top UI element and and status bar on iPhone 12 mini with extendSafeArea set to false", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "closedSprints": [ { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "458047", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is native issue from Apple side. The height of statusbar is 44 while top of safearea is 50. \r\nFor supporting property Ti.UI.iOS.statusBarBackgroundColor in iOS 13+, we are using a view(TIMOB-27609 / https://github.com/appcelerator/titanium_mobile/pull/11370) . I think we can manage the height of view to top of safearea if it is not equal to height of statusbar. ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-19T23:18:03.000+0000", "updated": "2021-01-19T23:18:03.000+0000" }, { "id": "458048", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/12402", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-20T00:34:31.000+0000", "updated": "2021-01-20T00:34:31.000+0000" }, { "id": "458052", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Is there a reference that it's an Apple issue? I have not heard about this bug so far and would like to prevent the manual top-margin hack if possible and fix it where it's actually happening.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-01-20T11:51:52.000+0000", "updated": "2021-01-20T11:51:52.000+0000" }, { "id": "458057", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "1. Apart from 2 links added in ticket description , see [this|https://developer.apple.com/forums/thread/662466] where people are talking about it.\r\n2. In all other devices (except iPhone 12 mini) the top of safearea insets is same as height of status bar . e.g iPhone 12, status bar height is 47 and top of safe area insets is 47.\r\n3. In titanium, from iOS 13+ to support Ti.UI.iOS.statusBarBackgroundColor, we are using view to be backward compatible. So setting the proper frame of view is necessary. In case if someone is not using Ti.UI.iOS.statusBarBackgroundColor, no need to adjust anything.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-20T18:47:43.000+0000", "updated": "2021-01-20T18:47:43.000+0000" }, { "id": "458065", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-22T00:23:08.000+0000", "updated": "2021-01-22T00:23:08.000+0000" }, { "id": "458070", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master and backport PR merged to 9_3_X for 9.3.1 release.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-01-22T20:48:59.000+0000", "updated": "2021-01-22T20:48:59.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }