{ "id": "110731", "key": "TIMOB-12988", "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": "15400", "description": "2013 Sprint 08 API", "name": "2013 Sprint 08 API", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15106", "description": "2013 Sprint 08", "name": "2013 Sprint 08", "archived": true, "released": true, "releaseDate": "2013-04-22" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-04-19T22:07:29.000+0000", "created": "2013-03-07T00:19:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "qe-closed-3.1.1" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-05-15T17:39:47.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": "*Problem description*\r\nWhen calling focus() on the next text field in a vertical layout, the parent scroll view bounces instead of smoothly transitioning to the next field. It works fine on other devices e.g. iPad 3 and iOS simulator.\r\n\r\n*Test case*\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar scrollContainer = Ti.UI.createScrollView({\r\n\theight : Ti.UI.SIZE,\r\n\tlayout : \"vertical\",\r\n\tleft : 10,\r\n\tright : 10,\r\n\tbottom : 0\r\n});\r\n\r\nvar formContainer = Ti.UI.createView({\r\n\tbackgroundColor : \"#fff\",\r\n\theight : Ti.UI.SIZE,\r\n\twidth : Ti.UI.FILL,\r\n\tlayout : \"vertical\",\r\n\ttop : 7,\r\n\tleft : 0,\r\n\tright : 0,\r\n\tbottom : 7,\r\n\tborderWidth : 1,\r\n\tborderColor : '#000'\r\n});\r\nscrollContainer.add(formContainer);\r\n\r\nvar getTextFieldRow = function(arg) {\r\n\r\n\tvar nameField = Titanium.UI.createTextField({\r\n\t\tid : arg.id,\r\n\t\thintText : \"ID: \" + arg.id,\r\n\t\tcolor : '#444',\r\n\t\tfont : {\r\n\t\t\tfontSize : 12,\r\n\t\t\tfontFamily : 'Helvetica Neue'\r\n\t\t},\r\n\t\theight : 35,\r\n\t\twidth : 262,\r\n\t\tpaddingLeft : 6,\r\n\t\tsuppressReturn : false,\r\n\t\treturnKeyType : Titanium.UI.RETURNKEY_NEXT,\r\n\t\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n\t});\r\n\r\n\treturn nameField;\r\n}\r\nvar textFields = [];\r\nfor (var i = 0; i < 30; i++) {\r\n\ttextFields.push(getTextFieldRow({\r\n\t\tid : i\r\n\t}));\r\n}\r\n\r\nfor (var i = 0; i < textFields.length; i++) {\r\n\ttextFields[i].addEventListener('return', function(e) {\r\n\t\tif (e.source.id + 1 < textFields.length) {\r\n\t\t\ttextFields[e.source.id + 1].focus();\r\n\t\t}\r\n\t});\r\n\tformContainer.add(textFields[i]);\r\n}\r\n\r\nwin1.add(scrollContainer);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Calling focus() on the next text field causes the parent scroll view to bounce on iPad 1 only", "creator": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPad 1\r\niOS 4.3.5, 6.0\r\nTi SDK 3.0.2 GA", "comment": { "comments": [ { "id": "242744", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Aha. I get it, I get it. iPad 1 is the only iPad that's single core. It's a timing issue because of that.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T20:33:44.000+0000", "updated": "2013-03-18T20:33:44.000+0000" }, { "id": "243586", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/4007", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T23:30:52.000+0000", "updated": "2013-03-21T23:30:52.000+0000" }, { "id": "248008", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4178\r\n\r\nHuge regression path. Apologies.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T21:12:52.000+0000", "updated": "2013-04-17T21:12:52.000+0000" }, { "id": "248446", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-19T22:07:29.000+0000", "updated": "2013-04-19T22:07:29.000+0000" }, { "id": "248655", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_1_X\nhttps://github.com/appcelerator/titanium_mobile/pull/4202", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-22T18:52:26.000+0000", "updated": "2013-04-22T18:52:26.000+0000" }, { "id": "252074", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\nAppcelerator Studio, build: 3.1.1.201305142215\nSDK, build: 3.1.1.v20130514180723\nDevice:\niPad 1 iOS 5.1.1\n\nWhen calling focus() on the next text field in a vertical layout, the parent scroll view is smoothly transitioning to the next field", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-15T17:38:51.000+0000", "updated": "2013-05-15T17:38:51.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }