{ "id": "91216", "key": "TIMOB-8955", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13404", "description": "Sprint 2012-12 Core", "name": "Sprint 2012-12 Core", "archived": true, "released": true, "releaseDate": "2012-06-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-11T02:25:48.000+0000", "created": "2012-05-02T14:12:14.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "community", "core", "module_label", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:28:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h3. Problem\r\n\r\nUsing 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.\r\n\r\nThis is tested on 2.0.1GA2 as well as the 1.8.2 Release.\r\n\r\nh4. Sample Code\r\n\r\n{noformat}\r\n\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white' \r\n});\r\nwin.open();\r\n\r\nvar signonview = Ti.UI.createView({\r\n top:10,\r\n left:10,\r\n right:10,\r\n bottom:10,\r\n backgroundColor:'transparent' \r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text:'alreadyNetworkSubscriber',\r\n backgroundGradient:{\r\n type:'linear',\r\n colors:['#929292','#717171'],\r\n startPoint:{x:0,y:0},\r\n endPoint:{x:0,y:45},\r\n backFillStart:true\r\n },\r\n shadowColor:'#282828',\r\n shadowOffset:{x:0,y:1},\r\n top:0,\r\n height:45,\r\n width:290,\r\n textAlign:'center',\r\n color:'#fff'\r\n});\r\nsignonview.add(label);\r\n\r\n\r\nwin.add(signonview);\r\n\r\n\r\n{noformat}", "attachment": [], "flagged": false, "summary": "iOS: Adding backgroundGradient property to a label generates [ERROR] Adding an event listener to a proxy that isn't already in the context", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: iOS\r\nTitanium SDK: 2.0.1GA2", "comment": { "comments": [ { "id": "198066", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged https://github.com/appcelerator/titanium_mobile/pull/2360", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-11T14:41:23.000+0000", "updated": "2012-06-11T14:41:23.000+0000" }, { "id": "199037", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.1.0.201206172244\r\nTi Mobile SDK2.1.0.v20120618134156 hash r00905cd0\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.1\r\n\r\nThe expected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-18T19:17:02.000+0000", "updated": "2012-06-18T19:17:02.000+0000" }, { "id": "202618", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T02:25:18.000+0000", "updated": "2012-07-11T02:25:18.000+0000" }, { "id": "278584", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:28:19.000+0000", "updated": "2013-11-07T05:28:19.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }