{ "id": "85155", "key": "TIMOB-7301", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-11-15T21:49:55.000+0000", "created": "2012-01-19T13:49:19.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "core", "parity", "regression" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "33681", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "108555", "key": "AC-2191", "fields": { "summary": "JSS in Titanium SDK 3.0.0 malfunctioning", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T17:32:44.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": "h3. Actual behavior\r\nWorking with an app.js with an include an app.jss with a require, and adding labels to the window, those are not getting the styles dictated by the jss files\r\n\r\nh3. Expected behavior\r\nJss working as used to work on 1.7.6 with the same structure\r\n\r\nh3. Files\r\n{code:title=app.js|borderStyle=solid}\r\nvar gt = {};\r\ngt.ui={};\r\n\r\n\r\nTi.include('/incs/incs.js');\r\n\r\ngt.ui.makeWin = function(){\r\n\t\r\n\tvar win1 = Titanium.UI.createWindow({ \r\n\t backgroundColor:'#fff',\r\n\t\tnavBarHidden:true\r\n\t});\t\r\n\r\n\tvar label1 = gt.ui.makeLabel('label1');\r\n\r\n\tvar label2 = gt.ui.makeLabel('label2');\r\n\r\n\twin1.add(label1);\r\n\twin1.add(label2);\r\n\treturn win1;\r\n};\r\n\r\n\r\nvar win = gt.ui.makeWin();\r\nwin.open();\t\r\n{code}\r\n\r\n{code:title=app.jss|borderStyle=solid}\r\n@import 'lay/style.jss';\r\n\r\n#label2 {\r\n\tcolor:'#f0f';\r\n\ttext:'I am Window 2';\r\n\tfontSize:40;\r\n\ttextAlign:'center';\r\n\theight:80;\r\n\twidth:'auto';\r\n}\r\n{code}\r\n\r\n{code:title=incs/incs.js|borderStyle=solid}\r\nTi.API.info('Including the inc file');\r\ngt.ui.makeLabel = function(id) {\r\n\t\r\n\tvar label = Titanium.UI.createLabel({\r\n\t\tid:id,\r\n\t\tclassName:'button'\r\n\t});\r\n\t\r\n\treturn label;\r\n};\r\n{code}\r\n\r\n{code:title=lay/style.jss|borderStyle=solid}\r\n#label1 {\r\n\tcolor:'#f00';\r\n\ttop:0;\r\n\ttext-align:'center';\r\n\ttext:'I am label 1';\r\n\theight:40;\r\n\twidth:'auto';\r\n}\r\n\r\n.button {\r\n\tbackground-color:'#00f';\r\n}\r\n{code}", "attachment": [ { "id": "27754", "filename": "APP-628983 2.zip", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-17T15:42:32.000+0000", "size": 2435415, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: JSS with import and js with include files not working", "creator": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "subtasks": [], "reporter": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "environment": "Titanium SDK version: 1.8.0 / 1.8.0.1 / 1.9.0\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3.3\r\nDevice Details: simulator \r\nHost Operating System: OSX 10.7.2\r\nTitanium Studio Build 1.0.7.201112281340", "comment": { "comments": [ { "id": "195217", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Issue still exists with 2.0.1GA2 on a Samsung Galaxy S2. Seems to work fine on the iOS simulator.\r\n\r\nI have also attached a sample project with the same code, to save time setting it up.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-17T15:42:32.000+0000", "updated": "2012-05-17T15:42:32.000+0000" }, { "id": "224732", "author": { "name": "johnq", "key": "johnq", "displayName": "john q hiu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The error is still there. Same as http://developer.appcelerator.com/question/134477/ (very simple example)\r\nThe problem is that JSS is not working at all if you use 'require' (commonjs) files under Android SDK 2.1.3. (maybe it's a context problem?)\r\n\r\nSome progress? Thanks in advance", "updateAuthor": { "name": "johnq", "key": "johnq", "displayName": "john q hiu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-23T17:28:03.000+0000", "updated": "2012-10-23T17:31:26.000+0000" }, { "id": "249097", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\nAndroid Emulator: Android SDK version: 2.2 \n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-26T07:29:10.000+0000", "updated": "2013-04-26T07:29:10.000+0000" }, { "id": "279870", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "JSS has been deprecated. We won't be fixing this.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T21:49:55.000+0000", "updated": "2013-11-15T21:49:55.000+0000" }, { "id": "414802", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. JSS has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T17:32:44.000+0000", "updated": "2017-03-22T17:32:44.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }