Expected Behavior
The label should be displayed with a black color and positioned in the top left corner.
Actual Behavior
The definitions from
bootstrap.jss
are not applied - the label is gray and centered.
I 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
Test case
Ti.UI.setBackgroundColor('#ffffff');
var options = {url: 'bootstrap.js',
className: 'mainwindow'};
var win = Ti.UI.createWindow(options);
win.open();
.mainwindow {
backgroundColor: '#ffffff';
navBarHidden: true;
fullscreen: false;
}
var message = Ti.UI.createLabel({text: 'Hello World', className:'messageLabel'});
Ti.UI.currentWindow.add(message);
.messageLabel {
color: '#000000';
top: '6dp';
left: '10dp';
}
Community Discussion
[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)
Jick I need to investigate which properties are officially supported, and to document them accordingly. See TIMOB-6930 that aims to address this. Hence, would you try the following to see if there is any improvement?
Thanks
Hi Paul, have tried it, but there is no improvement.
Thank you, Jick. Actually, I made a mistake with my last request. The message label text of
bootstrap.js
should be black, regardless. I have escalated this issue now. Thanks for reporting it, and for being so conscientious with the information you included. Much appreciated!Hi Paul, May I suggest you to change the priority of this task? Because my app has become unusable: I can't click on my links (which are stacked), my texts become unreadable (misplaced, stacked, wrong color). Until 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). Thanks in advance, Romain
Hi Paul, This 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. Thanks, Chad
Closing bug. Verified fix on: SDK build: 1.9.0.v20120117143134 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201131907 OS: Mac OS X Lion (10.7.1) Device: Droid 3 (2.3.4)
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. Is this as expected?