[ALOY-989] Custom TSS: issue when using more than one conditional
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-05-01T23:00:07.000+0000 |
Affected Version/s | Alloy 1.4.0 |
Fix Version/s | Alloy 1.4.0 |
Components | Styling |
Labels | qe-3.3.0, qe-testadded |
Reporter | Federico Casali |
Assignee | Tim Poulsen |
Created | 2014-04-21T23:09:55.000+0000 |
Updated | 2014-05-01T23:00:07.000+0000 |
PR: https://github.com/appcelerator/alloy/pull/378 I updated the 871 sample app to hopefully make it a little easier to match the target environment with the styles that get applied. This is how the styles should be applied for the various combinations of environments (only iOS results provided) ||Form factor||Alloy.Globals.foo||Style|| |iphone 4|true|'Alloy.globals.foo is true', fontSize 24, blue| |iphone 4|false|'Handheld and Alloy.Globals.foo false', blue| |iphone 5|true|'Alloy.globals.foo is true', fontSize 24, blue, bg color yellow| |iphone 5|false|'Handheld and Alloy.Globals.foo false', blue, bg color yellow| |tablet|true|'Alloy.Globals.foo is true & this is a table', font: 40dp, bold, green custom font| |tablet|false|'Alloy.globals.foo is false', black, default font size|