{ "id": "63235", "key": "TIMOB-2603", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:24:11.000+0000", "created": "2011-04-15T03:24:11.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T18:16:56.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

If a file is included from app.js and creates any type of UI\nelement, the jss properties are not applied at all for Android to\nthose elements. It does however work just fine on iphone. Here's a\ncode sample:

\n

app.js

\n
\n var window = Ti.UI.createWindow({\n     id:\"w\"\n });\n Ti.include('utils.js');\n
\n

utils.js

\n
\n var b = Titanium.UI.createButton({id:'b1'});\n window.add(b);\n \n window.open();\n
\n

app.jss

\n
\n#b1\n{\n    width:100;\n    height:200;\n    title:'test';\n}\n
{html}", "attachment": [], "flagged": false, "summary": "Android - JSS Not Applied To File Includes", "creator": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreassandberg", "key": "andreassandberg", "displayName": "Andreas sandberg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128940", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I don't know at this point if this is even a valid expectation\nof JSS since iOS is non-compliant across so many areas of JSS.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:11.000+0000", "updated": "2011-04-15T03:24:11.000+0000" }, { "id": "128941", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The JSS file that's used is dependent on the path that the view\nis created from, so in this case the JSS file should be in\nutils.jss. If you want to house common definitions in one place,\nyou can create a common.jss, and include it from both app.jss and\nutils.jss, or use \"global.jss\"

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:24:11.000+0000", "updated": "2011-04-15T03:24:11.000+0000" }, { "id": "408331", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T18:16:53.000+0000", "updated": "2017-03-02T18:16:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }