{ "id": "159260", "key": "ALOY-1486", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "17730", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-07-05" }, { "id": "18005", "name": "alloy 1.8.5", "archived": false, "released": true, "releaseDate": "2016-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-12T03:57:49.000+0000", "created": "2016-04-01T19:10:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Styles", "orientation", "qe-5.4.0" ], "versions": [ { "id": "17081", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17728", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-07-26T22:00:37.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "h6. Description\r\nIf we set orientationModes on window in app.tss file portrait, landscape both and any individual tss file only portrait then portrait mode does not work for individual tss.\r\n\r\nh6. Steps to reproduce\r\n1. Just create an alloy project.\r\n2. Replace this app.tss and index.tss file,\r\n3. Run this code in device or emulator.\r\n4. Rotate device.\r\n5. It does not stop.\r\n\r\n\r\nh6. actual behaviour\r\nIf device rotate, the app orientation change.\r\nh6. Expected behaviour\r\nSince orientation Modes \"PORTRAIT\" for the index.tss file so it should be always portrait.\r\n\r\n{code:title=app.tss}\r\n\"Window\": {\r\n orientationModes: [Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT],\r\n backgroundColor: \"red\"\r\n}\r\n{code}\r\n\r\n{code:title=index.tss}\r\n\"Window\": {\r\n\torientationModes: [Titanium.UI.PORTRAIT],\r\n\tbackgroundColor: \"blue\"\r\n}\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS, Android: Global styles is not overridden by local styles for orientationModes.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Appcelerator Command-Line Interface, version 5.2.1\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.1.GA, 5.2.0.GA\r\n Target Platform = iphone, Android\r\nAlloy Version: 1.8.3", "closedSprints": [ { "id": 619, "state": "closed", "name": "2016 Sprint 08 Tooling", "startDate": "2016-04-09T00:30:04.446Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:58:12.551Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "381646", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Feon hasn't look into this yet but, \r\n1. There's a workaround here right? that is to NOT set the global style, and just use individual styles for all views.\r\n2. I don't think it's good mobile practice to have different forms of orientation in a single app. it should be consistent throughout.\r\n\r\nSo this issue might be invalid, as i don't think orientationModes is supposed to be used this way. [~fmiao] right?\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-04T23:08:49.000+0000", "updated": "2016-04-04T23:08:49.000+0000" }, { "id": "382368", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/781", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-04-11T21:54:42.000+0000", "updated": "2016-04-11T21:54:42.000+0000" }, { "id": "382404", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR approved and merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-12T03:57:39.000+0000", "updated": "2016-04-12T03:57:39.000+0000" }, { "id": "391563", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed. Local styles now override global styles.\r\n\r\nTested on:\r\n{code:java}\r\niPhone 6s (9.3.1) \r\niOS simulator (9.3)\r\n
Mac OSX El Capitan 10.11.6\r\nStudio: 4.7.0.201607130543\r\n
Ti SDK: 5.4.0.v20160725003348\r\n
Xcode: 7.3.1 \r\n
Appc NPM: 4.2.7\r\nAppc CLI: 5.4.0-35\r\nAlloy: 1.9.1\r\nNode: v4.4.4\r\n{code}\r\n\r\n*Closing ticket*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-26T22:00:19.000+0000", "updated": "2016-07-26T22:00:19.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }