{ "id": "174995", "key": "TIMOB-27886", "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": null, "resolutiondate": null, "created": "2020-05-07T11:55:45.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" }, { "id": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" }, { "id": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "issuelinks": [ { "id": "58354", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "174899", "key": "TIMOB-27839", "fields": { "summary": "Orientationchange Stops Firing on iPadOS", "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": "2020-05-07T11:57:44.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "With the following test case the counter starts of at '2' on iOS 13.4 and and starts at '1' using iOS 12.2 (Tested on iPad and iPhone Sims). The counter should be starting at 0 and only changing when an orientation has been made.\r\n\r\n*Test Case:* \r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n});\r\nvar label = Ti.UI.createLabel({\r\n text: 'Height: 0, Count: 0',\r\n textAlign: 'center'\r\n})\r\nvar rotateCount = 0;\r\nTi.Gesture.addEventListener('orientationchange', function (e) {\r\n console.log('Height: ' + Ti.Platform.displayCaps.platformHeight);\r\n rotateCount++;\r\n label.text = 'Height: ' + Ti.Platform.displayCaps.platformHeight + ', Count: ' + rotateCount;\r\n});\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n*Expected result*\r\nCounter should start of at 0 \r\n\r\n*Actual result*\r\niOS 13.4 - Counter starts at 2\r\niOS 12.2 - Counter starts at 1", "attachment": [], "flagged": false, "summary": "iOS: Counter does not start of at 0 and different iOS versions return different results", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Catalina: 10.15.5 Beta\r\nXcode: 11.4\r\nJava Version: 1.8.0_131\r\nAndroid NDK: 21.1.6273396-beta2\r\nNode.js: 10.16.3\r\n\"\"NPM\":\"5.0.0-1\",\"CLI\":\"8.0.0-master.10\"\"\r\niphone 8 sim (ios 13.4)\r\nipad pro 12.7 inch (iOS 13.2)\r\nipad pro 12.7 inch (iOS 12.2)\r\n", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }