{ "id": "130360", "key": "TIMOB-17139", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2016-04-20T07:51:40.000+0000", "created": "2014-05-13T16:14:38.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "webview" ], "versions": [ { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-04-20T07:51:40.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": "h6.Issue description\r\nThe Titanium Android app below sets the user-agent on a WebView, so the web server can differentiate the Android app from the Android browser. When setUserAgent is used, touching an HTML select will no longer open the input on the bottom of the screen.\r\n\r\nh6.app.js\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup({ exitOnClose: true });\r\n var webView = Titanium.UI.createWebView();\r\n webView.setUrl('select.html');\r\n \r\n // removing the setUserAgent fixes the HTML select\r\n webView.setUserAgent('Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; SAMSUNG-SGH-I747 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30');\r\n \r\n var window = Titanium.UI.createWindow();\r\n window.add(webView);\r\n var adviceTab = Ti.UI.createTab({\r\n title : \"Title\",\r\n window : window\r\n });\r\n window.containingTab = adviceTab;\r\n tabGroup.addTab(adviceTab);\r\n tabGroup.open();\r\n{code}\r\n\r\nh6.select.html\r\n{code}\r\n\r\n\r\n
\r\n