{ "id": "66114", "key": "TIMOB-4371", "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": "11361", "description": "Mobile 1.8.0 M08", "name": "Sprint 2011-29", "archived": true, "released": true, "releaseDate": "2011-07-25" } ], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:52:26.000+0000", "created": "2011-06-04T01:26:34.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "11721", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "78105", "key": "TIMOB-4744", "fields": { "summary": "Android: add support for setting the type of viewport on a webview when it is created", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2020-01-10T10:30:59.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": "Since 1.7.0, webview content on Android is way too long and wide by default. This leads to a webview where you can scroll way too much to the right and the bottom with no more content being visible inside the webview.\r\nOn 1.6.3 the height and width of a webview was properly adopted to the text length and the width/height properties. Here's an example code snippet you can run:\r\n\r\n\r\napp.js:\r\n{code} \r\nTitanium.UI.setBackgroundColor('black');\r\n\r\nvar win = Titanium.UI.createWindow();\r\nvar webview = Titanium.UI.createWebView({\r\n\thtml:\"This is some text inside a webview...it's not very long, but demonstrates what it should\",\r\n\theight:150,\r\n\twidth:300,\r\n\tautoDetect:[],\r\n\tscalesPageToFit:false,\r\n\tbackgroundColor:\"white\",\r\n\tleft:10,\r\n\ttop:100,\r\n\tcolor:\"black\"\r\n});\r\nwin.add(webview);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nOn 1.6.3 this will look just fine, no scrollbars appear in the webview. Since 1.7.0 you will get a webview where you can scroll vertically and horizontally way beyond the size / length of the visible text.\r\n\r\n", "attachment": [ { "id": "18723", "filename": "1.6.3.jpg", "author": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-04T01:26:34.000+0000", "size": 65690, "mimeType": "image/jpeg" }, { "id": "18722", "filename": "1.7.0.jpg", "author": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-04T01:26:34.000+0000", "size": 105139, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: webview content height and width too large", "creator": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK Version:\r\n\r\n* Titanium 1.7.0 06/02/11 11:34\r\n* Android 2.2 and 2.3 in emulator and on HTC Desire with Android 2.3\r\n* TI Studio build 1.0.0.201106021621, Mac OSX 10.6.7\r\n\r\nAlso tested by PDowsett:\r\n\r\n* Titanium 1.7.0 (06/02/11 11:34 c951553...)\r\n* Android 2.1 update1\r\n\r\nAlso tested by dcassenti:\r\n\r\n* Titanium Studio 2.1.0.201206251749\r\n* SDK 2.1.0 GA\r\n* Android 4.0 (both device and emulator)\r\n", "closedSprints": [ { "id": 1176, "state": "closed", "name": "2020 Sprint 1", "startDate": "2020-01-02T21:15:56.301Z", "endDate": "2020-01-17T21:15:00.000Z", "completeDate": "2020-01-21T17:44:29.577Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "156594", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Ben\r\n\r\nNote that in the emulator only, webviews are broken on Android 2.3.X. See [Android SDK / Target Android Platform|http://wiki.appcelerator.org/display/guides/Titanium+Compatibility+Matrix#TitaniumCompatibilityMatrix-AndroidSDK%2FTargetAndroidPlatform] for more info.\r\n\r\nOther than this, great ticket! I wish more of them were like this. ;)", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T09:48:20.000+0000", "updated": "2011-06-13T09:48:20.000+0000" }, { "id": "159033", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h3. Associated Helpdesk ticket\r\nappc.me/c/APP-599983", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-08T10:12:55.000+0000", "updated": "2011-07-08T10:12:55.000+0000" }, { "id": "159043", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Opie, triage this please. I'm guessing the difference in display is when we switched to anyDensity:true. I'm wondering if the scroll buttons are causing the page to be larger.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-08T10:55:16.000+0000", "updated": "2011-07-08T10:55:16.000+0000" }, { "id": "160284", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Behavior is a side effect of using wide viewport in order to support double tap zoom. \r\n\r\nWebview size issue can be addressed by setting dimensions in dips. \r\n\r\nDefault zoom behavior can be modified to not load in a zoomed in state by setting \"scalesPageToFit:false\"", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-07-21T17:32:53.000+0000", "updated": "2011-07-21T17:32:53.000+0000" }, { "id": "160286", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "created ticket #4744 for new feature request to support specifying the type of viewport that should be used when creating a webview", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-07-21T17:40:01.000+0000", "updated": "2011-07-21T17:40:01.000+0000" }, { "id": "163548", "author": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\r\n\r\nI'm using anyDensity:false in my android applications. What if I want the webview to set its width and height automatically? I can't see how to prevent this behaviour then...the webview automatically still is way too high and too wide...\r\ndo I always have to check the screen dimensions and adopt the webview size with SDK 1.7 ?", "updateAuthor": { "name": "benlebt", "key": "benlebt", "displayName": "Ben S.", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-20T01:06:03.000+0000", "updated": "2011-08-20T01:06:03.000+0000" }, { "id": "201564", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nA customer opened a ticket, reporting the same issue. I did try setting anyDensity to true/false, but nothing seems to help. The WebView is set to be Ti.UI.SIZE large, but I still see the scrollbars.\r\n\r\nIs there any way to fix this? I'm using SDK 2.1.0 GA", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-05T08:49:34.000+0000", "updated": "2012-07-05T08:49:34.000+0000" }, { "id": "453592", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:52:26.000+0000", "updated": "2020-01-09T19:52:26.000+0000" }, { "id": "453626", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as it is marked as {{Won't Do}}.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-10T10:30:52.000+0000", "updated": "2020-01-10T10:30:52.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }