{ "id": "163309", "key": "AC-4478", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-10-13T19:53:41.000+0000", "created": "2016-09-19T16:39:55.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-13T19:53:41.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The focus on an input field in a webview starts an autoscrolling of the webview itself. But if the parent view of a webview has a fix height the webview autoscrolling does not work.\r\n\r\n*Steps to reproduction*\r\n# Click on Googles search field\r\n# The webview does not automatically scroll up\r\n\r\n*Expected behaviour*\r\n# Click on Googles search field\r\n# The webview does automatically scroll up, so the user can see what he is typing\r\n\r\n*Question*\r\nIs this an Android or Titanium issue?\r\n\r\n*Test case*\r\nindex.js\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n});\r\n\r\nvar wrapperview = Ti.UI.createView({\r\n top : 0,\r\n left : 0,\r\n height : 615,\r\n width : 360,\r\n backgroundColor : 'blue',\r\n});\r\n\r\nvar verticalLayoutView = Ti.UI.createView({\r\n height : 500,\r\n width : Ti.UI.FILL,\r\n layout : \"vertical\",\r\n backgroundColor : \"yellow\",\r\n});\r\n\r\nvar redView = Ti.UI.createView({\r\n height : 20,\r\n width : Ti.UI.FILL,\r\n backgroundColor : \"red\"\r\n});\r\nvar webview = Ti.UI.createWebView({\r\n top : 20,\r\n height : Ti.UI.FILL,\r\n scalesPageToFit : false,\r\n hideLoadIndicator : true,\r\n enableZoomControls : false,\r\n ignoreSslError : true,\r\n borderColor : \"black\",\r\n});\r\nverticalLayoutView.add(redView);\r\nverticalLayoutView.add(webview);\r\n\r\n\r\nwrapperview.add(verticalLayoutView);\r\nwin.add(wrapperview);\r\n\r\nwin.open();\r\n\r\nwebview.setUrl(\"https://www.google.com\");\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: WebView auto scrolling does not work when focus on input field", "creator": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "chris35", "key": "chris35", "displayName": "Christoph Eck", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 4.5.0\r\n npm Version = 2.15.9\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.5.0.GA\r\n SDK Path = /Users/ceck/Library/Application Support/Titanium/mobilesdk/osx/5.5.0.GA\r\n Target Platform = android", "comment": { "comments": [ { "id": "396562", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Your description is not clear. I have tested your issue with the sample code. When I click on the Google search field The webview does not automatically scrollup. Please clear your query. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-19T19:31:28.000+0000", "updated": "2016-09-19T19:31:28.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }