Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (regression)
Viewing all articles
Browse latest Browse all 12

Android: JSS not working with 1.8.0.1 release (v8 and rhino) - Regression

$
0
0

Hey,

my JSS definitions are no longer working since the 1.8.0.1 release. It picks up the JSS definitions from app.js but not from another window bootstrap.js.

See example:

Resources/app.js

Ti.UI.setBackgroundColor('#ffffff');
 
var options = {url: 'bootstrap.js',
               exitOnClose:  true,
               softInputMode: Ti.UI.Android ? Ti.UI.Android.SOFT_INPUT_ADJUST_RESIZE : '',
               className: 'mainwindow'};
 
var win     = Ti.UI.createWindow(options);
 
win.open();
Resources/android/app.android.jss
.mainwindow {
    backgroundColor: '#ffffff';
    navBarHidden: true;
    fullscreen: false;
}
Resources/bootstrap.js
var message = Ti.UI.createLabel({text: 'Hello World', id:'messageLabel'});
 
Ti.UI.currentWindow.add(message);
Resources/android/bootstrap.android.jss
#messageLabel {
    color: '#000000';
    zIndex: 999;
    font-weight: 'bold';
    font-size: '14dp';
    top: '6dp';
    left: '10dp';
}

Result

The style from app.android.jss is applied to the window but not the style from bootstrap.android.jss . This example works in 1.7.6 release.

Also tried to rename file to bootstrap.js etc. but it is not working. Label is always centered and color is gray instead of black.

Environment

  • Mac OS X Lion 10.7.2
  • Android Simulator 2.3.1
  • Titanium Studio 1.0.7
  • Titanium Mobile 1.8.0.1
  • Android SDK Manager Revision 15

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>