{ "id": "103592", "key": "TIMOB-11527", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-10-22T20:11:27.000+0000", "created": "2012-10-18T10:08:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-ios100112" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-17T18:05:00.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": "This is not a regression. It occurs since 2.1.1.\r\n\r\nSteps to reproduce\r\n1. Copy the code below in app.js and run the app\r\n{code}\r\n var win = Ti.UI.createWindow();\r\n win.backgroundColor= 'white';\r\n\t\t\r\n\t\tvar scrollView = Ti.UI.createScrollView({\r\n\t\t contentHeight:'auto',\r\n\t\t contentWidth:0,\r\n\t\t layout:'horizontal',\r\n\t\t backgroundColor: 'green'\r\n\t\t\r\n\t\t});\r\n\t\t\r\n\t\twin.add(scrollView);\r\n\t\t\r\n\t\tvar colors = ['red', 'blue', 'pink', 'white', 'black'];\r\n\t\t\r\n\t\tvar max = 120;\r\n\t\t\r\n\t\tfor(var i = 0; i < max; i++){\r\n\t\t\r\n\t\t var view = Ti.UI.createView({\r\n\t\t backgroundColor: colors[i%colors.length],\r\n\t\t borderColor:'gray',\r\n\t\t borderWidth:4,\r\n\t\t height: 100,\r\n\t\t left: 10,\r\n\t\t width: 100,\r\n\t\t top: 10\r\n\t\t\r\n\t\t });\r\n\t\t\r\n\t\t view.addEventListener('click', function(_event){\r\n\t\t\r\n\t\t scrollView.remove(_event.source);\r\n\t\t });\r\n\t\t\r\n\t\t scrollView.add(view);\r\n\t\t}\r\n\t\t\r\n\t\twin.add(view);\r\n\t\t\r\nwin.open();\r\n{code}\r\n2. Click on any of the view,(except the first view in the top most row). \r\n\r\nExpected result:\r\n2. The touched view should be removed.The rest of the views should not be affected.\r\n\r\nActual result:\r\n2. The touched view gets removed.It leaves a black view in the top row at the left corner, which is not a part of the scrollview.It should not be there.You can see it by scrolling the scrollview up and down. ", "attachment": [], "flagged": false, "summary": "iOS: View: Removing a view from ScrollView leaves a black view at first position", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.0.0.v20121015174610\r\nTitanium  Studio: 2.1.3.201209101847\r\nDevice : iPad iOS 6.0 , iPHONE 3G S iOS 5.0.1\r\nXcode : 4.5 \r\nMachine OS : MAC 10.8", "comment": { "comments": [ { "id": "224666", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Bad code\r\nremove win.add(view); and all things are ok", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-22T20:11:27.000+0000", "updated": "2012-10-22T20:11:27.000+0000" }, { "id": "413522", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:05:00.000+0000", "updated": "2017-03-17T18:05:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }