Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1165] Compile error when merging backgroundGradient

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-10-24T19:27:15.000+0000
Affected Version/sAlloy 1.5.0
Fix Version/sAlloy 1.6.0
ComponentsStyling
Labelsn/a
ReporterFokke Zandbergen
AssigneeTim Poulsen
Created2014-10-14T14:05:57.000+0000
Updated2015-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 suite

Comments

  1. 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.
  2. 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?
  3. Tim Poulsen 2014-10-23

    Reopen to backport to 1_6_X branch
  4. Tim Poulsen 2014-10-24

    This was merged to 1_5_X and master previously, so is already part of 1_6_X.
  5. Fokke Zandbergen 2015-02-14

    [~fcasali] it's a while ago, but I think this should reproduce: *index.tss*
       ".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 } ],
         }
       }
       
    *index.js*
       $.createStyle({
         classes: ['one', 'two']
       });
       
  6. 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.
  7. Eric Merriman 2015-03-27

    Closing.

JSON Source