{ "id": "63513", "key": "TIMOB-2881", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:20.000+0000", "created": "2011-04-15T03:31:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "reported-1.5.1", "reported-1.6.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:20.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}

Problem

\n

If you have a scroll view with a text field inside of it, and\nyou call scrollTo on that scroll view, typing in the text field\nwon't update what you see. At that point, if you move the scroll\nview by dragging your finger on it, the text field will update and\nshow you what you typed.

\n

Tested On

\n

Tested with Titanium Mobile SDK 1.5.1, 1.6.0 (Jan 18, 2011)
\nBROKEN on Android Simulator GALAXY TAB Addon 2.2
\nBROKEN on Android GALAXY TAB device
\nWORKS on Android Simulator 2.2

\n

Sample Code

\n

Add this to an app.js to reproduce this. Follow the onscreen\nlabels created by it, and the problem should be pretty\nclear.

\n
\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\nvar scrollView = Titanium.UI.createScrollView({
\n
\n\n\n
\n
\n
\ncontentWidth:'auto',\ncontentHeight:800,\ntop:0,\nshowVerticalScrollIndicator:false,\nshowHorizontalScrollIndicator:true\n
\n
\n\n\n
\n});\nscrollView.add(Titanium.UI.createTextField({\n\n
\n
\ncolor:'#336699',\nheight:45,\nwidth:215,\ntop:500,\nleft:20\n
\n
\n\n\n
\n}));\nscrollView.add(Ti.UI.createLabel({\n\n
\n
\ntext: 'Welcome to the galaxy tab messed up text field demo. Please touch anywhere to begin.',\ntop: 10, left: 10, right: 10, height: 100\n
\n
\n\n\n
\n}));\nscrollView.add(Ti.UI.createLabel({\n\n
\n
\ntext: 'Now without scrolling, try typing something in the above text box.',\ntop: 600, left: 10, right: 10, height: 50\n
\n
\n\n\n
\n}));\n\n
\nwin.add(scrollView);\nwin.addEventListener('click', function(e) {\n\n
\n
\nscrollView.scrollTo(0, 700);\n
\n
\n\n\n
\n});\nwin.open();\n
\n

Trace Log

\n

No relevant information is shown in a trace level log. All that\nis shown is that we've tapped on the scroll view (to fire the\n\"scrollTo\" event), and then that we tapped on the text field (to\ntype):

\n
\n[TRACE] E/TiUIView( 321): (main) [5722,11848] TAP, TAP, TAP on [Ti.UI.ScrollView]\n[TRACE] E/TiUIView( 321): (main) [1401,13249] TAP, TAP, TAP on [Ti.UI.TextField]\n
\n

Associated Helpdesk Ticket

\n

http://developer.appcelerator.com/helpdesk/view/64991

{html}", "attachment": [], "flagged": false, "summary": "Android: Galaxy Tab scrollTo Prevents Text Field from Updating", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "129610", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Using galaxy tab 2.2.2 running [INFO] Titanium SDK version: 1.6.0 (02/08/11\n20:55 bd9d124...) I am unable to reproduce the noted behavior using\nthe provided content. I am able to immediately enter and see the\ntext.

\n

opening a new ticket about the click event being fired in\nlandscape with no user interaction

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:31:54.000+0000", "updated": "2011-04-15T03:31:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }