{ "id": "115052", "key": "TIMOB-14011", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "15117", "description": "2013 Sprint 12 BB", "name": "2013 Sprint 12 BB", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-11T11:42:37.000+0000", "created": "2013-05-28T21:26:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "blackberry", "module_orientation", "qe-3.3.0", "qe-testadded", "sdk-bb" ], "versions": [], "issuelinks": [ { "id": "37933", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "114426", "key": "TIMOB-13874", "fields": { "summary": "BlackBerry : Orientation change does not work in sdk 3.1.1", "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": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-11T18:58:33.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "We had a community developer asking for isLandscape property of gestures on the blackberry google groups.", "attachment": [], "flagged": false, "summary": "BlackBerry: Implement the 'isLandscape' method in gestures", "creator": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nTi Studio : 3.1.1.201305150313\r\nTi BB SDK : 3.1.1.v20130524180421\r\nMac OSX : 10.8.2\r\nwin 7 \r\nWin 8 \r\nZ10 BB simulator : 10.0.10.822\r\nZ10 device running 10.0.10.88\r\n\r\nQ10 Simulator : 10.1.0.1720\r\nQ10 Dev alpha C device running 10.1.0.138", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "258283", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/107", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-17T22:05:18.000+0000", "updated": "2013-06-17T22:05:18.000+0000" }, { "id": "258284", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Sample code:\n{code}\nvar win = Titanium.UI.createWindow({\n orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.PORTRAIT]\n});\n\nvar btn = Ti.UI.createButton({\n title: 'orientation test'\n});\n\nbtn.addEventListener('click', function(){\n if(Ti.Gesture.isPortrait()) {\n alert('is portrait');\n } else if(Ti.Gesture.isLandscape()){\n alert('is landscape');\n } else if(Ti.Gesture.isFaceUp()){\n alert('is face up');\n } else if(Ti.Gesture.isFaceDown()){\n alert('is face down');\n } else {\n alert('is unknown');\n }\n});\n\nwin.add(btn);\n\nwin.open();\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-06-17T22:05:56.000+0000", "updated": "2013-06-17T22:05:56.000+0000" }, { "id": "306756", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201405271647\r\nTitanium SDK, build: 3.3.0.v20140524224144 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n\r\nalert \"is portrait\" only, disregarding the orientation", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T22:41:31.000+0000", "updated": "2014-05-28T22:41:31.000+0000" }, { "id": "307317", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The native code is correct:\r\n{code}\r\n\tbb::device::DeviceInfo info;\r\n\tbb::device::DeviceOrientation::Type orientation = info.orientation();\r\n\tif(orientation == bb::device::DeviceOrientation::TopUp || orientation == bb::device::DeviceOrientation::BottomUp)\r\n\t{\r\n\t\treturn Boolean::New(true);\r\n\t}\r\n\treturn Boolean::New(false);\r\n{code}\r\nFor some reason it always returns \"bb::device::DeviceOrientation::TopUp\"\r\n\r\nInvestigating with BB at the moment.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-03T11:18:22.000+0000", "updated": "2014-06-03T11:18:22.000+0000" }, { "id": "308439", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Update here?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-11T10:22:53.000+0000", "updated": "2014-06-11T10:22:53.000+0000" }, { "id": "308452", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/264", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-11T11:42:37.000+0000", "updated": "2014-06-11T11:42:37.000+0000" }, { "id": "308512", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Add to tiapp.xml\r\n{code}\r\n\r\n auto\r\n\r\n{code}\r\n\r\nTested and verified fixed with:\r\nMac osx 10.9.3 Mavericks\r\nAppcelerator Studio, build: 3.3.0.201406061445\r\nTitanium SDK, build: 3.3.0.v20140611084912 \r\nNode.JS Version: v0.10.13 \r\nNPM Version: 1.3.2 \r\nacs@1.0.14 \r\nalloy@1.4.0-beta \r\nnpm@1.3.2 \r\ntitanium@3.3.0-beta2 \r\ntitanium-code-processor@1.1.1\r\nDevice: BB Z10 (10.2.1)\r\n\r\nh5. Actual result\r\nthe alert corresponding to orientation \r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-11T18:58:19.000+0000", "updated": "2014-06-11T18:58:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }