{ "id": "120767", "key": "TIMOB-16043", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-10-30T17:03:55.000+0000", "created": "2013-10-03T12:11:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "StatusbarOverlap", "Titanium3.1.3", "ios7" ], "versions": [], "issuelinks": [ { "id": "33897", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "116148", "key": "TIMOB-14283", "fields": { "summary": "iOS7: Window (Standlone) - Toolbar is overlapping Statusbar", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-30T17:04:00.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": "Create any dummy project and run with above provided environment for IOS7.\r\n\r\nActual result:\r\nToolbar is overlapping Statusbar. \r\n\r\nExpected:\r\nNo overlapping\r\n\r\nFound its replica at TIMOB-14283. But it seemed closed without proper fix.", "attachment": [ { "id": "42938", "filename": "bug.png", "author": { "name": "tester", "key": "tester", "displayName": "tester", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-03T12:11:17.000+0000", "size": 14344, "mimeType": "image/png" }, { "id": "44695", "filename": "Screen Shot 2013-12-17 at 10.24.44 PM.png", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T06:25:11.000+0000", "size": 39522, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Toolbar is overlapping Statusbar", "creator": { "name": "tester", "key": "tester", "displayName": "tester", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tester", "key": "tester", "displayName": "tester", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI version 3.1.2, \r\nTitanium SDK version 3.1.4.v20131002082601 ( or Titanium SDK version 3.1.4.GA),\r\nIOS7", "closedSprints": [ { "id": 1090, "state": "closed", "name": "Sprint 34 2018 - Jean Grey", "startDate": "2018-10-26T20:51:04.901Z", "endDate": "2018-11-02T20:51:00.000Z", "completeDate": "2018-11-02T20:36:18.628Z", "originBoardId": 218 } ], "comment": { "comments": [ { "id": "275926", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello tester,\r\n\r\nPlease visit [iOS7 Migration Guide|http://docs.appcelerator.com/titanium/latest/#!/guide/iOS_7_Migration_Guide-section-37533766_iOS7MigrationGuide-LightweightWindows] for more details. \r\n\r\nThanks ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-10-21T13:39:30.000+0000", "updated": "2013-10-21T13:39:30.000+0000" }, { "id": "284982", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] I am reopening this ticket because I can reproduce this issue with the sample code provided in the documentation. Toolbar overlaps with the status bar if the tool bar is positioned on the top (screenshot attached). \r\n\r\nTIMOB-14283 is a related ticket but not sure if it is the exact same issue as I cannot reproduce this issue with KitchenSink but can with the sample below. You have suggested to set the custom toolbar height in TIMOB-14283 but TIMOB-8263 (custom toolbar height) has been marked as \"Won't Fix\". We may have to update the documentation if this is not a valid use case,\r\n\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iOS.Toolbar\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar send = Titanium.UI.createButton({\r\n title: 'Send',\r\n style: Titanium.UI.iPhone.SystemButtonStyle.DONE,\r\n});\r\n\r\nvar camera = Titanium.UI.createButton({\r\n systemButton: Titanium.UI.iPhone.SystemButton.CAMERA,\r\n});\r\n\r\nvar cancel = Titanium.UI.createButton({\r\n systemButton: Titanium.UI.iPhone.SystemButton.CANCEL\r\n});\r\n\r\nflexSpace = Titanium.UI.createButton({\r\n systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n\r\nvar toolbar = Titanium.UI.iOS.createToolbar({\r\n items:[send, flexSpace, camera, flexSpace, cancel],\r\n top:0,\r\n borderTop:true,\r\n borderBottom:false\r\n}); \r\n\r\nvar win = Titanium.UI.createWindow();\r\nwin.add(toolbar);\r\nwin.open();\r\n\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-18T06:22:42.000+0000", "updated": "2014-01-21T18:49:26.000+0000" }, { "id": "289081", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please try with this code.\r\n{code}\r\nvar send = Titanium.UI.createButton({\r\n title: 'Send',\r\n style: Titanium.UI.iPhone.SystemButtonStyle.DONE,\r\n});\r\n \r\nvar camera = Titanium.UI.createButton({\r\n systemButton: Titanium.UI.iPhone.SystemButton.CAMERA,\r\n});\r\n \r\nvar cancel = Titanium.UI.createButton({\r\n systemButton: Titanium.UI.iPhone.SystemButton.CANCEL\r\n});\r\n \r\nflexSpace = Titanium.UI.createButton({\r\n systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n});\r\n \r\nvar toolbar = Titanium.UI.iOS.createToolbar({\r\n items:[send, flexSpace, camera, flexSpace, cancel],\r\n top:0,\r\n borderTop:true,\r\n borderBottom:false\r\n}); \r\n \r\n\r\n// Function to test if device is iOS 7 or later\r\nfunction isiOS7Plus()\r\n{\r\n\t// iOS-specific test\r\n\tif (Titanium.Platform.name == 'iPhone OS')\r\n\t{\r\n\t\tvar version = Titanium.Platform.version.split(\".\");\r\n\t\tvar major = parseInt(version[0],10);\r\n\r\n\t\t// Can only test this support on a 3.2+ device\r\n\t\tif (major >= 7)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}\r\n\r\nvar iOS7 = isiOS7Plus();\r\nvar theTop = iOS7 ? 20 : 0;\r\n\r\nvar win = Ti.UI.createWindow({top:theTop,statusBarStyle: Titanium.UI.iPhone.StatusBar.LIGHT_CONTENT});\r\n\r\nwin.add(toolbar);\r\nwin.open();\r\n{code}\r\n\r\nThe [iOS 7 Migration Guide|https://docs.appcelerator.com/platform/latest/#!/guide/iOS_7_Migration_Guide] actually explains this quite well.", "updateAuthor": { "name": "bimmel", "key": "bimmel2", "displayName": "Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T19:10:55.000+0000", "updated": "2018-10-30T17:01:59.000+0000" }, { "id": "413939", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:36:56.000+0000", "updated": "2017-03-20T20:36:56.000+0000" }, { "id": "443099", "author": { "name": "bimmel", "key": "bimmel2", "displayName": "Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening ticket to amend an outdated doc link.", "updateAuthor": { "name": "bimmel", "key": "bimmel2", "displayName": "Brian Immel", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-10-30T17:00:12.000+0000", "updated": "2018-10-30T17:00:12.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }