{ "id": "80625", "key": "TIMOB-5377", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-03-29T22:25:46.000+0000", "created": "2011-09-26T14:43:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-29T22:25:55.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\nWhile using dynamically ScrollView parameter contentOffset it reponds with an error message in the log window: \r\n{code}\r\n[ERROR] Adding an event listener to a proxy that isn't already in the context\r\n{code}\r\n\r\nh3.Reproducible Steps\r\n1. Execute the sample code\r\n2. Press \"Jump To\" button\r\n3. Check the log window - ERROR message would appear\r\n\r\nh3.Sample Code\r\n{code}\r\nvar scrollView = Ti.UI.createScrollView({\r\n\t\tshowHorizontalScrollIndicator:true, showVerticalScrollIndicator:true,\r\n\t\twidth: 250, height: 250, top: 50,\r\n\t\tborderColor:'green', borderWidth:1,\r\n\t\tcontentWidth:1000, contentHeight:1000,\r\n\t\tcontentOffset: { x:300, y:300}\r\n\t});\r\n\t\r\nscrollView.add(Ti.UI.createLabel({\r\n\ttop: 0,\r\n\tleft: 0,\r\n\twidth: 500,\r\n\theight: 500,\r\n\tbackgroundColor: \"blue\",\r\n\ttext: \"test\"\r\n}));\r\n\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({title:'Jump To', width:100, height:50, bottom: 30});\r\n\r\nb2.addEventListener('click', function() {\r\n\tscrollView.contentOffset = {x:300, y:300};\r\n});\r\n\r\nwin.add(scrollView);\r\nwin.add(b2);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/a/APP-858884", "attachment": [], "flagged": false, "summary": "iOS: ScrollView - contentOffset gives an error message", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 4.3, Simulator\r\nMobile SDK: 1.8.0.v20110915133349\r\nRegression - works correctly with SDK 1.7.2", "comment": { "comments": [ { "id": "176807", "author": { "name": "casi", "key": "casi", "displayName": "Mattias Lundström", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I get the same error message but not for the same problem.\r\nFor me it seems like it has nothing to do with the contentOffset call but with the actual assignment of the listener.", "updateAuthor": { "name": "casi", "key": "casi", "displayName": "Mattias Lundström", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T04:21:32.000+0000", "updated": "2011-12-21T04:21:32.000+0000" }, { "id": "416296", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of TIMOB-6650 which provides more information.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-29T22:25:22.000+0000", "updated": "2017-03-29T22:25:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }