Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20455] Alloy: Classes in app.tss not working with $.UI.create() when a baseController is set but no tss or xml file

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterChristy Thomas
AssigneeUnknown
Created2016-02-19T18:38:45.000+0000
Updated2018-02-28T19:55:27.000+0000

Description

I have a derived controller that has exports.baseController set. I also don't have an xml and tss file as it is using the base controllers. In the derived controller I am trying to add a new component (button) with $.UI.create('Button', { classes: 'primary_button'}) and the classes from my app.tss file are not being used. The class gets used from the base controller and in other locations. Use attached zip file for the code to reproduce this problem.

Attachments

FileDateSize
app.zip2016-02-19T18:36:52.000+000010160156
Screenshot 2016-02-19 13.40.52.png2016-02-19T18:41:12.000+0000108565

Comments

  1. Christy Thomas 2016-02-19

    I have attached a screenshot of what the app.zip code looks like when run. The Derived button is not using the 'primary_button' class.

JSON Source