{ "id": "97562", "key": "ALOY-108", "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": "14036", "description": "2012 Sprint 14", "name": "2012 Sprint 14", "archived": true, "released": true, "releaseDate": "2012-07-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-19T11:52:02.000+0000", "created": "2012-07-18T07:48:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "14036", "description": "2012 Sprint 14", "name": "2012 Sprint 14", "archived": true, "released": true, "releaseDate": "2012-07-19" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-01T14:56:11.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h2. Problem\r\n\r\nexpr() syntax in tss files currently only works in a flat style definition with no nested objects. For example, the following style definition will parse the {{width}} correctly, but will not properly parse the {{fontSize}}:\r\n\r\n{code:javascript}\r\n\".container\": {\r\n \"width\": expr(Ti.Platform.displayCaps.platformWidth/2),\r\n \"font\": {\r\n \"fontSize\": expr(require('alloy/measurement').dpToPx(18))\r\n }\r\n}\r\n{code}\r\n\r\nh2. Proposed Solution\r\n\r\nProcessing of style attributes needs to be performed recursively. Right now, if an object type is encountered, it is simply returned as-is with no expr() evaluations. We need to pass the object back into the style parsing function to further process it to allow expr() syntax to work.", "attachment": [], "flagged": false, "summary": "tss file expr() syntax needs to be handled recursively", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }