Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8955] iOS: Adding backgroundGradient property to a label generates [ERROR] Adding an event listener to a proxy that isn't already in the context

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-07-11T02:25:48.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-12 Core
ComponentsiOS
Labelscommunity, core, module_label, qe-testadded
ReporterVarun Joshi
AssigneeStephen Tramer
Created2012-05-02T14:12:14.000+0000
Updated2013-11-07T05:28:19.000+0000

Description

Problem

Using the backgroundGradient property when creating a label object the following error is generated: [ERROR] Adding an event listener to a proxy that isn't already in the context. This is tested on 2.0.1GA2 as well as the 1.8.2 Release.

Sample Code

{noformat} var win = Ti.UI.createWindow({ backgroundColor:'white' }); win.open(); var signonview = Ti.UI.createView({ top:10, left:10, right:10, bottom:10, backgroundColor:'transparent' }); var label = Ti.UI.createLabel({ text:'alreadyNetworkSubscriber', backgroundGradient:{ type:'linear', colors:['#929292','#717171'], startPoint:{x:0,y:0}, endPoint:{x:0,y:45}, backFillStart:true }, shadowColor:'#282828', shadowOffset:{x:0,y:1}, top:0, height:45, width:290, textAlign:'center', color:'#fff' }); signonview.add(label); win.add(signonview); {noformat}

Comments

  1. Max Stepanov 2012-06-11

    PR merged https://github.com/appcelerator/titanium_mobile/pull/2360
  2. Michael Pettiford 2012-06-18

    Closing issue Tested with Ti Studio build 2.1.0.201206172244 Ti Mobile SDK2.1.0.v20120618134156 hash r00905cd0 OSX Lion 10.7.3 iPhone 4S OS 5.1 The expected behavior is shown
  3. Anshu Mittal 2012-07-11

    Reopening to update labels
  4. Shameer Jan 2013-11-07

    Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787

JSON Source