{ "id": "152425", "key": "ALOY-1320", "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": "17081", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17169", "name": "alloy 1.7.23", "archived": false, "released": true, "releaseDate": "2015-10-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-30T09:39:35.000+0000", "created": "2015-10-28T12:43:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17153", "name": "alloy 1.7.22", "archived": false, "released": true, "releaseDate": "2015-10-23" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-02-02T23:03:31.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": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "When an Alloy view element uses another namespace styles are no longer applied. When you set {{ns}} to the default {{Ti.UI}} it still works, but any other value will not.\r\n\r\n*index.xml*\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*index.tss*\r\n\r\n{code}\r\n'View': {\r\n\tbackgroundColor: 'red'\r\n}\r\n{code}\r\n\r\n*Compiled code*\r\n\r\n{code:javascript}\r\n $.__views.__alloyId0 = Ti.UI.createView({\r\n backgroundColor: \"red\",\r\n id: \"__alloyId0\"\r\n });\r\n $.__views.index.add($.__views.__alloyId0);\r\n $.__views.__alloyId1 = Ti.UI.createView({\r\n backgroundColor: \"red\",\r\n id: \"__alloyId1\"\r\n });\r\n $.__views.index.add($.__views.__alloyId1);\r\n $.__views.__alloyId2 = Ti.UI.Android.createView({\r\n id: \"__alloyId2\"\r\n });\r\n{code}", "attachment": [], "flagged": false, "summary": "Styles not applied when an element uses another namespace", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Alloy 1.7.16\r\nappc -v -o json {\"NPM\":\"4.2.0\",\"CLI\":\"5.0.3\"}", "closedSprints": [ { "id": 520, "state": "closed", "name": "2015 Sprint 22 Tooling", "startDate": "2015-10-26T16:54:38.390Z", "endDate": "2015-11-07T02:54:00.000Z", "completeDate": "2015-11-10T23:31:39.740Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "368132", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Is {{Ti.UI.Android.createView()}} a valid function? \r\nRegardless, the workaround for now is to assign an {{id}} to the view that uses another namespace.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-10-28T16:37:32.000+0000", "updated": "2015-10-28T16:44:15.000+0000" }, { "id": "368286", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "No it's not ;) But you get the idea right?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-29T11:32:07.000+0000", "updated": "2015-10-29T11:32:07.000+0000" }, { "id": "368349", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/736\r\nTest app: https://github.com/feons/alloy/tree/ALOY-1320/test/apps/testing/ALOY-1320\r\n\r\nFunctional Test:\r\n1. Run test app, style should be applied to {{CustomLabel}} and it's text should be red.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-10-29T21:32:07.000+0000", "updated": "2015-10-29T21:32:07.000+0000" }, { "id": "368431", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Tested using the included app and compiled code is as expected!", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-30T09:39:35.000+0000", "updated": "2015-10-30T09:39:35.000+0000" }, { "id": "375795", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.3 (15D21)\r\nStudio 4.5.0.201601262138\r\nTi SDK 5.2.0.v20160202103508\r\nAppc NPM 4.2.3-1\r\nAppc CLI 5.2.0-239\r\nAlloy 1.7.33\r\nXcode 7.2 (7C68)\r\n\r\nStyles are correctly applied when the element is using a namespace other than the default. Tested using the provided test case and the app located here: https://github.com/feons/alloy/tree/ALOY-1320/test/apps/testing/ALOY-1320", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-02T23:03:31.000+0000", "updated": "2016-02-02T23:03:31.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }