{ "id": "63802", "key": "TIMOB-3170", "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": "11256", "description": "", "name": "Sprint-2011-08", "archived": true, "released": true, "releaseDate": "2011-02-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:06.000+0000", "created": "2011-04-15T03:38:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "include", "jss", "release-1.7.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:01:06.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 you have an app.js with an app.jss everything works fine. If\nyou add any Ti.include into the file the app.jss is ignored.
\nTicket reference: http://developer.appcelerator.com/helpdesk/view/73861
Fixing tags, fixing title to conform to ticket guidelines.
\n@Ben or @Alan what version of the mobilesdk?
Hi Don, I tested with 1.6 RC1 and the 1.7.x build series from\nFeb 15th. Both had the issue.
An additional point, it isn't limited to app.js and app.jss it\nappears to be an issue on any window with Ti.include
I noticed the same issue on 1.6.0 with Android.
Simple failcase:
\napp.js:
\n\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#000',\n exitOnClose: true\n});\n\nTi.include('test.js');\nwin.add( Ti.UI.createButton({id:'btnTest', title: 'Mickey'}) );\nwin.open();
\n
\napp.jss:
\n\n#btnTest {\n height: 80;\n width: 200;\n font-size: 40\n}
\n
\ntest.js:
\n\nTi.API.info('hello from test.js');
\n
\nThe button that displays should be a \"big\" (height 80)\nbutton with some big text on it. But you'll just get a normal\nbutton with normal font size in the failcase.
(from [da7f39dbb79b4bc8230ba36d0698f8e51e493701])\nWhen evalFile called for Ti.include(), make sure context's url gets\nset back to original else things that depend on the filename --\nlike JSS -- break. [#3170 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/da7f39dbb79b...
Tested with Titanium SDK version: 1.7.0 (03/01/11 16:09\ne613126)
\nG1 1.6
\nGalaxyTab 2.2
\niPhone 4 OS 4.2.1
\nEmulator 2.1
@Bill should this get onto 1.6.1. Seems like it should to\nme.