Titanium JIRA Archive
Alloy (ALOY)

[ALOY-622] app.tss doesn't apply to baseController

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-04-28T16:14:05.000+0000
Affected Version/sn/a
Fix Version/sAlloy 1.2.0, Alloy 1.1.1, 2013 Sprint 08
ComponentsRuntime, XML
Labelsn/a
ReporterChristopher Beloch
AssigneeTony Lukasavage
Created2013-04-15T06:57:27.000+0000
Updated2013-08-02T03:18:54.000+0000

Description

In my app.tss I've declared a basic window styling (barColor etc). Most of my controllers build on a custom baseController that delivers the window instances with some additional buttons I need in all my windows. So the first line of my controller looks like this:
exports.baseController = 'base/window';
$.getView() will return the window from the baseController. The problem is, that the styling of my app.tss isn't applied. The compiled controller for base/window in the Resources folder looks like this:
$.__views.window = Ti.UI.createWindow({
   id: "window"
});
Missing all properties from my app.tss. If I create the window directly without using the baseController, everything is fine, but would result in many lines of duplicated code

Comments

  1. Tony Lukasavage 2013-04-15

    Would you mind updating this ticket with a basic test case? Then I can test on my end and find the root of the issue. Thanks.
  2. Christopher Beloch 2013-04-16

    I uploaded a sample project to my dropbox: https://dl.dropboxusercontent.com/u/362018/ALOY-622.zip The extended_window.js is just refered to the base_window.js via exports.baseController = 'base_window'. Note that 'normal_window' has the same Mockup, but doesn't have a baseController... All styling comes from app.tss - extended_window is broken - normal_window is ok, it has the red navbar.
  3. Christopher Beloch 2013-04-22

    Looks like it's fixed by ALOY-625
  4. Tony Lukasavage 2013-04-22

    resolved by ALOY-625
  5. Tony Lukasavage 2013-04-28

    changing to duplicate
  6. Tony Lukasavage 2013-04-28

    duplicate of ALOY-625
  7. Federico Casali 2013-08-02

    Duplicated JIRA already closed. Closing.

JSON Source