{ "id": "97703", "key": "TIMOB-10110", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-04T02:48:48.000+0000", "created": "2012-07-20T01:23:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_scrollview", "qe-review", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "22085", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103352", "key": "TIMOB-11479", "fields": { "summary": "iOS: Scrollview - An application crashes on launch", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-19T06:14:52.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "In android when you create a view with borders, two views are actually created to create the border.\r\nThe problem with this is that when trying to remove the view from a scrollview, you only remove the \"container\" view and not the border view.\r\n\r\nThe example \r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n\r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n contentHeight:'auto',\r\n contentWidth:0,\r\n layout:'horizontal',\r\n backgroundColor: 'green'\r\n});\r\nwin.add(scrollView);\r\n \r\nvar colors = ['red', 'blue', 'pink', 'white', 'black'];\r\n \r\nvar max = 120;\r\nfor(var i = 0; i < max; i++){\r\n var view = Ti.UI.createView({\r\n backgroundColor: colors[i%colors.length],\r\n borderColor:'gray',\r\n borderWidth:4,\r\n height: 100,\r\n left: 10,\r\n width: 100,\r\n top: 10\r\n });\r\n \r\n view.addEventListener('click', function(_event){\r\n scrollView.remove(_event.source);\r\n });\r\n scrollView.add(view);\r\n}\r\n{code}\r\n\r\nand here is a simple example of what should happen\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'white'\r\n});\r\nwin.open();\r\n \r\n \r\nvar view = Ti.UI.createView({\r\n backgroundColor: 'red',\r\n borderColor:'gray',\r\n borderWidth:4,\r\n height: 200,\r\n width: 200,\r\n });\r\n\r\nview.addEventListener('click', function(_event){\r\n win.remove(view);\r\n});\r\nwin.add(view);\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: view with borders are not correctly removed in scrollview", "creator": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "environment": "Ti 2.2.0 (master)\r\nAndroid 3.2", "comment": { "comments": [ { "id": "208634", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "PS:why cant i add bugs to TIMOB?\r\nThanks", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-07-20T01:23:52.000+0000", "updated": "2012-07-20T01:23:52.000+0000" }, { "id": "209047", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "pull request awaiting https://github.com/appcelerator/titanium_mobile/pull/2619", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-07-23T23:35:34.000+0000", "updated": "2012-07-23T23:35:34.000+0000" }, { "id": "209049", "author": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "body": "@Shak Hossain: is there any way to have the right to create bugs in TIMOB?\r\nIt would be much easier for me. Especially as actively develop on titanium mobile.\r\nThanks.\r\nAnd thanks for looking at this.", "updateAuthor": { "name": "farfromrefuge", "key": "farfromrefuge", "displayName": "Martin Guillon", "active": false, "timeZone": "Europe/Berlin" }, "created": "2012-07-23T23:46:49.000+0000", "updated": "2012-07-23T23:46:49.000+0000" }, { "id": "214413", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\r\nTested and verified on:\r\nTitanium Studio, build: 2.1.1.201208091713\r\nTitanium SDK, build: 2.2.0.v20120813184911\r\nDevices: Nexus 7 tab (4.1), HTC Evo (4.0.3), Android Emulator (2.2)\r\n\r\nThe expected behavior is shown.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T13:31:29.000+0000", "updated": "2012-08-14T13:31:29.000+0000" }, { "id": "217368", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-09-04T02:47:59.000+0000", "updated": "2012-09-04T02:47:59.000+0000" }, { "id": "280130", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "anvil test case added\nPR Link:\nhttps://github.com/appcelerator/titanium_mobile/pull/4958", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-19T06:14:52.000+0000", "updated": "2013-11-19T06:14:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }