{ "id": "113383", "key": "AC-1862", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-06-26T18:03:59.000+0000", "created": "2013-04-25T16:31:10.000+0000", "labels": [ "defect", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:46.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "According to docs \"Global Styles. You can create a global style file, called app.tss, which applies all styles defined inside it to all views, but does not override the non-global styles or property attributes in the markup.\"\r\n\r\nHere's my Proof of concept\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*app.tss*\r\n{code:javascript}\r\n\".x\": {},\r\n\".y\": {},\r\n\".z\": {},\r\n\".topPanel\": {\r\n\theight: 150,\r\n\tbackgroundColor: 'yellow'\r\n}\r\n{code}\r\n\r\n*index.tss*\r\n{code:javascript}\r\n\".a\": {},\r\n\".b\": {},\r\n\".topPanel\": {\r\n\theight: 150,\r\n\tbackgroundColor: 'green'\r\n}\r\n{code}\r\n\r\nThis code above should show topPanel green right? Since \"local\" index.tss overrides global app.tss. Well, it doesn't. It shows yellow box.\r\n\r\nHowever if I change index.tss to that:\r\n\r\n*index.tss*\r\n{code:javascript}\r\n\".a\": {},\r\n\".b\": {},\r\n\".c\": {},\r\n\".d\": {},\r\n\".topPanel\": {\r\n\theight: 150,\r\n\tbackgroundColor: 'green'\r\n}\r\n{code}\r\n\r\nNow my background is green. I assume it has something to do with .topPanel being \"lower/more far\" in the JSON list.\r\n\r\n\r\nThanks", "attachment": [], "flagged": false, "summary": "[Alloy] app.tss will override non-global styles", "creator": { "name": "mikek", "key": "mikek", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mikek", "key": "mikek", "displayName": "Mike", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.1.0, iOS platform", "comment": { "comments": [ { "id": "259539", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce with Ti SDK 3.1 GA or 3.1.1 GA, Alloy 1.1.3. Green is shown as expected.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-26T18:03:59.000+0000", "updated": "2013-06-26T18:03:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }