{ "id": "78210", "key": "AC-3037", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-07-26T03:50:12.000+0000", "created": "2011-07-26T01:34:11.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:04.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Remove method of \"ScrollView\" component doesn't work.\r\n\r\n\r\nHere is simple example that demonstrates the issue:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n modal: true,\r\n backgroundColor: '#000',\r\n layout: 'vertical' \r\n});\r\n \r\nvar view = Ti.UI.createScrollView({\r\n layout: 'horizontal',\r\n height: 'auto'\r\n});\r\n \r\nvar label = Ti.UI.createLabel({ text: 'Test' });\r\n \r\nvar tf = Ti.UI.createTextField({ width: 300 });\r\n \r\nview.add(label);\r\nview.add(tf);\r\n \r\nwin.add(view);\r\n \r\nwin.addEventListener('open', function() {\r\n setTimeout(function() { view.remove(label) }, 3000);\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\nLabel should be removed after 3 seconds, but nothing happens. If you change \"ScrollView\" with \"View\" everything works fine.", "attachment": [], "flagged": false, "summary": "ScrollView - \"remove\" method doesn't work", "creator": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Android 2.2 (Samsung Galaxy Tab), Titanium SDK 1.7.1 (06/21/11 14:28 1293a6d), Windows XP", "comment": { "comments": [ { "id": "160572", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-26T03:49:48.000+0000", "updated": "2011-07-26T03:49:48.000+0000" }, { "id": "160574", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Hi Paul.\r\n\r\n\r\nI have tested my code. It's not missing \"win.open()\", you need to scroll down to see it. :)\r\n\r\n\r\nI'm using \"open\" event and \"setTimeout\" so you can easily see the problem. Example can be without that.\r\n\r\n\r\nI did open Q/A issue: [http://developer.appcelerator.com/question/123174/scrollview---remove-method-doesnt-work]\r\n\r\nBut didn't search for old tickets, I forgot to do that, sorry about that.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-07-26T04:19:43.000+0000", "updated": "2011-07-26T04:19:43.000+0000" }, { "id": "160577", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Btw, Paul,\r\n\r\n\r\nyou have small copy/paste error in your code posted to the TIMOB-3378: \"ar win ...\" instead of \"var win ...\".\r\n\r\n\r\nAlso, IMHO, TIMOB-3378 should have higher priority, it's basic and important feature. :)", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2011-07-26T05:28:47.000+0000", "updated": "2011-07-26T05:28:47.000+0000" }, { "id": "164468", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing issue. If any new information comes to light that justifies it, then please reopen.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-30T01:27:15.000+0000", "updated": "2011-08-30T01:27:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }