I'm having a strange error occur when working in Titanium. I have an alloy project that is throwing the error "Unused TSS class styling rule" next to the vast majority of my TSS classes.
For example:
".box" : {
top : 0,
borderWidth : 2,
borderColor : '#555',
borderRadius : 7,
backgroundImage : '/blur_bg.png',
opacity : 1,
height : Ti.UI.SIZE,
layout : 'vertical'
}
Is there a way to get Titanium to ignore these errors and run the project anyway? Or is there a clean work-around?
Any help is appreciated. Especially if you've come up against this sort of issue before.
Unused TSS class styling rule
is just a warning not an error. You should be able to run the project without any problems. The warning basically means that .box
is not used in a view.
If you want to hide the warning bubbles go to "Preferences" -> "General" -> "Editors" -> "Text Editors" -> "Annotations" -> "warnings" and uncheck "Vertical ruler" & "Text as".