{ "id": "62807", "key": "TIMOB-2175", "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": "11228", "name": "Release 1.5.0 M03", "archived": true, "released": true, "releaseDate": "2010-11-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-18T23:10:57.000+0000", "created": "2011-04-15T03:12:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "removeview", "scrollableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-18T23:10:57.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": "{html}

Please see this \nQ&A for a description of the problem.

\n

The following code demonstrates the issue. Run the script and\nclick the first button - this is the workaround I have described in\nthe Q&A. Then restart the script and click the second button to\nsee the exception.

\n

http://gist.github.com/641174

\n

Note: This is definitely an issue on android. Need confirmation\nwhether the same bug exists on IOS.

{html}", "attachment": [], "flagged": false, "summary": "Removing a view from the middle of the ScollableView index causes an exception", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "127734", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Normalized title.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:46.000+0000", "updated": "2011-04-15T03:12:46.000+0000" }, { "id": "127735", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [dccbb0c1e80fe8d292f53df641c3592b33d77bf2])\nMerge branch 'master' of https://github.com/dizzymonkey/titanium_mobile\n[#937\nstate:fixed-in-qa] [#2175 state:fixed-in-qa] \nhttps://github.com/appcelerator/titanium_mobile/commit/dccbb0c1e80f...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:47.000+0000", "updated": "2011-04-15T03:12:47.000+0000" }, { "id": "127736", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Marshall since he validated and merged the patch.\nAlso putting it in the milestone it was completed in.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:47.000+0000", "updated": "2011-04-15T03:12:47.000+0000" }, { "id": "127737", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Pass Titanium SDK version: 1.5.0 (12/01/10 09:30 ac7cfd8)\ndrillbit test Android Sim 1.6/2.1

\n

android sim 1.6
\n\nhttps://5111068499667359260-a-appcelerator-com-s-sites.googlegroups...

\n

android sim 2.1
\n\nhttps://5111068499667359260-a-appcelerator-com-s-sites.googlegroups...

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:47.000+0000", "updated": "2011-04-15T03:12:47.000+0000" }, { "id": "127738", "author": { "name": "danieltome", "key": "danieltome", "displayName": "Daniel Tome", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

There is still an issue when removing a selected view from a\nscrollableView on Android.

\n

I added notes here: \nhttp://developer.appcelerator.com/question/72621/scrollableview-rem...

\n

And code and test case here:

\n

Sample code with 2 views and a scrollable view: http://pastie.org/1698526

\n

To test this. Manually scroll the view to \"View 1\" the green\none.
\nThen click on the button: \"Remove View 1\"

\n

Expected result: The view gets removed and it scrolls back to\nview0. (this happens on iPhone)
\nOn Android: The scrollableView remains blank, and there is no way\nto get back to view0.

{html}", "updateAuthor": { "name": "danieltome", "key": "danieltome", "displayName": "Daniel Tome", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:12:47.000+0000", "updated": "2011-04-15T03:12:47.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }