{ "id": "84361", "key": "TIMOB-6931", "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": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-17T14:29:31.000+0000", "created": "2011-12-29T12:50:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_window", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-03T15:49:26.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": "h2. Expected Behavior \r\n\r\nThe label should be displayed with a black color and positioned in the top left corner.\r\n\r\nh2. Actual Behavior\r\n\r\nThe definitions from {{bootstrap.jss}} are not applied - the label is gray and centered. \r\n\r\nI get the expected behavior with the Titanium 1.7.6 release on Android. It works as expected on iOS with 1.7.6 and 1.8.0.1\r\n\r\nh2. Test case \r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.setBackgroundColor('#ffffff');\r\nvar options = {url: 'bootstrap.js',\r\n className: 'mainwindow'};\r\nvar win = Ti.UI.createWindow(options);\r\nwin.open();\r\n{code} \r\n\r\n\r\n{code:lang=html|title=app.jss}\r\n.mainwindow {\r\n backgroundColor: '#ffffff';\r\n navBarHidden: true;\r\n fullscreen: false;\r\n}\r\n{code} \r\n\r\n\r\n{code:lang=javascript|title=bootstrap.js}\r\nvar message = Ti.UI.createLabel({text: 'Hello World', className:'messageLabel'});\r\nTi.UI.currentWindow.add(message);\r\n{code} \r\n\r\n{code:lang=html|title=bootstrap.jss}\r\n.messageLabel {\r\n color: '#000000';\r\n top: '6dp';\r\n left: '10dp';\r\n}\r\n{code} \r\n\r\nh2. Community Discussion \r\n[Android: JSS not working with 1.8.0.1 release (v8 and rhino) - Regression|http://developer.appcelerator.com/question/129819/android-jss-not-working-with-1801-release-v8-and-rhino---regression]", "attachment": [], "flagged": false, "summary": "Android: JSS not working in new opened window", "creator": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "environment": "* Titanium SDK version: *Titanium Mobile 1.8.0.1*\r\n* Javascript Engine: *Both Rhino and V8*\r\n* Platform & version: *Android 2.3.1, Android SDK Manager Revision 15*\r\n* Device Details: *Android Simulator 2.3.1*\r\n* Host Operating System: *OSX 10.7.2*\r\n* Titanium Studio version: *1.0.7*", "comment": { "comments": [ { "id": "177632", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Jick\r\n\r\nI need to investigate which properties are officially supported, and to document them accordingly. See TIMOB-6930 that aims to address this.\r\n\r\nHence, would you try the following to see if there is any improvement?\r\n\r\n{code:lang=html|title=app.jss}\r\n.mainwindow {\r\n background-color: '#ffffff';\r\n}\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-29T13:05:52.000+0000", "updated": "2011-12-29T13:05:52.000+0000" }, { "id": "177633", "author": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Paul,\r\n\r\nhave tried it, but there is no improvement.", "updateAuthor": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-12-29T13:11:26.000+0000", "updated": "2011-12-29T13:11:26.000+0000" }, { "id": "177638", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you, Jick. Actually, I made a mistake with my last request. The message label text of {{bootstrap.js}} should be black, regardless.\r\n\r\nI have escalated this issue now. Thanks for reporting it, and for being so conscientious with the information you included. Much appreciated!\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-29T14:14:44.000+0000", "updated": "2011-12-29T14:14:44.000+0000" }, { "id": "178830", "author": { "name": "knice", "key": "knice", "displayName": "Romain", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Paul,\r\n\r\nMay I suggest you to change the priority of this task?\r\nBecause my app has become unusable: I can't click on my links (which are stacked), my texts become unreadable (misplaced, stacked, wrong color).\r\n\r\nUntil this issue is fixed, I won't be able to use Titanium 1.8.0.1 for android (whereas it works like a charm for iOS).\r\n\r\nThanks in advance,\r\n\r\nRomain", "updateAuthor": { "name": "knice", "key": "knice", "displayName": "Romain", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-11T03:18:29.000+0000", "updated": "2012-01-11T03:18:29.000+0000" }, { "id": "178913", "author": { "name": "chadder06", "key": "chadder06", "displayName": "Chad", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nThis is super important for our app as well. Android runs but is useless because it has no styling. We were never able to release with a prior SDK because of the performance issues with Rhino.\r\n\r\nThanks,\r\n\r\nChad", "updateAuthor": { "name": "chadder06", "key": "chadder06", "displayName": "Chad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-11T13:23:03.000+0000", "updated": "2012-01-11T13:23:03.000+0000" }, { "id": "179658", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120117143134\r\nRuntime: V8, Rhino\r\nTitanium Studio, build: 1.0.8.201201131907\r\nOS: Mac OS X Lion (10.7.1)\r\nDevice: Droid 3 (2.3.4)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-01-17T15:07:51.000+0000", "updated": "2012-01-17T15:07:51.000+0000" }, { "id": "179876", "author": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "body": "It still doesn't work if I copy the content of bootstrap.js to a file named \"test.js\" and if I replace the content of the file \"bootstrap.js\" with \"require('test');\". This works on iOS.\r\n\r\nIs this as expected? \r\n\r\n{code:lang=javascript|title=bootstrap.js} \r\nrequire('test');\r\n{code} \r\n{code:lang=javascript|title=test.js}\r\nvar message = Ti.UI.createLabel({text: 'Hello World', className:'messageLabel'});\r\nTi.UI.currentWindow.add(message); \r\n{code} ", "updateAuthor": { "name": "jicks83", "key": "jicks83", "displayName": "Jick Steen", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-01-19T10:25:15.000+0000", "updated": "2012-01-19T10:25:15.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }