[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 Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-11T02:25:48.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | Release 2.1.0, Sprint 2012-12 Core |
Components | iOS |
Labels | community, core, module_label, qe-testadded |
Reporter | Varun Joshi |
Assignee | Stephen Tramer |
Created | 2012-05-02T14:12:14.000+0000 |
Updated | 2013-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
JSON Source
PR merged https://github.com/appcelerator/titanium_mobile/pull/2360
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
Reopening to update labels
Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787