Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1401] Window backgroundGradient does not work in iOS 4.

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2012-06-22T13:47:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
Reporterctredway
AssigneeNeeraj Gupta
Created2011-04-15T02:51:16.000+0000
Updated2017-03-09T23:32:47.000+0000

Description

A customer reported that windows backgroundGradient does not render correctly. I could not get it to display at all using the following code.

var winCaseOverview= Titanium.UI.currentWindow;
winCaseOverview.backgroundGradient = {

                                    type:'linear',
                                    colors:[{
                                                color:'#383838',
                                                position:0.0
                                            }, 
                                            {
                                                color:'#2a2a2a',
                                                position:1.0
                                            }]
                                    };

Since there is not an example any where, this could be a code issue.

Comments

  1. Vishal Duggal 2012-06-22

    Use offset not position
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source