[ALOY-1165] Compile error when merging backgroundGradient
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-24T19:27:15.000+0000 |
Affected Version/s | Alloy 1.5.0 |
Fix Version/s | Alloy 1.6.0 |
Components | Styling |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Tim Poulsen |
Created | 2014-10-14T14:05:57.000+0000 |
Updated | 2015-03-27T21:45:35.000+0000 |
Description
PR: https://github.com/appcelerator/alloy/pull/588 Review pull request, create test case / sample app to be added to test suiteComments
- Tim Poulsen 2014-10-14 PR merged Test using the ALOY\-717 and ALOY\-1051 test apps, which should run as expected on iOS and Android. Due to ALOY-1153, the 717 sample won't run on MobileWeb.
- Federico Casali 2014-10-15 Fokke, can you post a sample code to reproduce the issue? I'm investigating to reproduce the compile issue but so far I wasn't able to. It is my understanding that it is involving which elements we pass in the colors array, correct?
- Tim Poulsen 2014-10-23 Reopen to backport to 1_6_X branch
- Tim Poulsen 2014-10-24 This was merged to 1_5_X and master previously, so is already part of 1_6_X.
- Fokke Zandbergen 2015-02-14
[~fcasali] it's a while ago, but I think this should reproduce:
*index.tss*
*index.js*".one": { backgroundGradient: { type: 'linear', startPoint: { x: '0%', y: '50%' }, endPoint: { x: '100%', y: '50%' }, colors: [ { color: 'red', offset: 0.0}, { color: 'blue', offset: 0.25 }, { color: 'red', offset: 1.0 } ], } } ".two": { backgroundGradient: { type: 'linear', startPoint: { x: '0%', y: '50%' }, endPoint: { x: '100%', y: '50%' }, colors: [ { color: 'red', offset: 0.0}, { color: 'blue', offset: 0.25 }, { color: 'red', offset: 1.0 } ], } }
$.createStyle({ classes: ['one', 'two'] });
- Eric Wieber 2015-03-27
Verified fixed using:
Titanium SDK 4.0.0.v20150327082616
Studio 4.0.0.201503261211
Appc NPM: 0.3.35
Appc CLI 0.2.197
Alloy 1.6.0-alpha
Test projects from
test/apps/testing/ALOY\-717
,test/apps/testing/ALOY\-1051
, and ALOY-1163 compile and run without error, displaying correctly. - Eric Merriman 2015-03-27 Closing.