[ALOY-622] app.tss doesn't apply to baseController
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-04-28T16:14:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.2.0, Alloy 1.1.1, 2013 Sprint 08 |
Components | Runtime, XML |
Labels | n/a |
Reporter | Christopher Beloch |
Assignee | Tony Lukasavage |
Created | 2013-04-15T06:57:27.000+0000 |
Updated | 2013-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
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.
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.
Looks like it's fixed by ALOY-625
resolved by ALOY-625
changing to duplicate
duplicate of ALOY-625
Duplicated JIRA already closed. Closing.