Titanium JIRA Archive
Alloy (ALOY)

[ALOY-625] app.tss not being applied to views that don't have controller-specific styles

GitHub Issuen/a
Resolution Date2013-04-17T20:33:36.000+0000
Affected Version/sAlloy 1.1.0
Fix Version/sAlloy 1.2.0, Alloy 1.1.1, 2013 Sprint 08
ComponentsRuntime, XML
ReporterTony Lukasavage
AssigneeTony Lukasavage



app.tss files are not being applied to views/controllers that don't have controller-specific styles. For example:


	<Window class="container">
		<Label id="label">Hello, World</Label>


".container": {

"Label": {
	width: Ti.UI.SIZE,
	height: Ti.UI.SIZE,
	color: "#f00"
The above will not apply the app.tss styles to the appropriate components in the index.xml file.


Creating a blank TSS file "index.tss" will apply the global style.


  1. Tony Lukasavage 2013-04-17

    Resolved in 1.1.1 and 1.2.0. Added test app for this case: https://github.com/appcelerator/alloy/tree/master/test/apps/basics/global_style
  2. Quang Pham 2013-04-22

    popup.xml app.tss ".btn": { height: 32, width: 300 } popup.tss ".popup-button": { width: 135 } the width in popup.tss does not override the width in app.tss
  3. Tony Lukasavage 2013-04-28

    [~ptquang86] this should be resolved in Alloy 1.1.2 as a result of ALOY-628
  4. Quang Pham 2013-04-28

    Thank you Tony. Waiting for Alloy 1.1.2 :)
  5. Tony Lukasavage 2013-04-28

    test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-625 When the app is run, the text represented in the app will indicate how the app should appear for the functional test to pass.
  6. Tony Lukasavage 2013-04-28

    [~ptquang86] if you want to test it early, you can try out the alpha now:
       [sudo] npm install -g alloy@1.1.2-alpha
  7. Paras Mishra 2013-05-01

    Working as expected using the testapp https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-625 Tested on: Device: Samsung Galaxy Note, Android version: 2.3.6 Device : iPad 2, iOS version: 5.1 Alloy verison: 1.1.2-alpha SDK: 3.1.1.v20130430164508 CLI version : 3.1.0 OS : MAC OSX 10.7.5 Appcelerator Studio, build: XCode : 4.5.1
  8. Federico Casali 2013-06-21

    Verified / fixed as also ALOY-625 Rechecked with environment: Titanium SDK 3.1.2.v20130619101604 Alloy 1.1.3 Appcelerator Studio Node 0.8.22 Closing.

JSON Source