{ "id": "61396", "key": "TIMOB-764", "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": "11223", "name": "Release 1.3.0", "archived": true, "released": true, "releaseDate": "2010-05-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:54:10.000+0000", "created": "2011-04-15T02:35:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "bfreedman(atappcelerator)", "key": "bfreedman(atappcelerator)", "displayName": "bfreedman (at appcelerator)", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:54:10.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": "{html}

Base UI => Views => Web Views => Auto Height

{html}", "attachment": [], "flagged": false, "summary": "web view height:'auto' does not work - nothing is displayed", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123968", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Commit c4c04723141cf3526f1507ace706e75f761d12c9 fixes this issue\n\"enough\" in that web views with height/width 'auto' now display.\nHowever they do not display 'properly', that is, with the\ncontaining scroll view sized big enough to view the entire webview\ncontent at once. Will leave this ticket open until that's\nsolved.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:53.000+0000", "updated": "2011-04-15T02:35:53.000+0000" }, { "id": "123969", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [a04182c6f8209588272406721322dac4d8959104])\nCloses #764: Auto works 'adequately'. Auto height is OK;\nauto width is not. See the comment in the source and on the ticket.\n\nhttp://github.com/appcelerator/titanium_mobile/commit/a04182c6f8209...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:53.000+0000", "updated": "2011-04-15T02:35:53.000+0000" }, { "id": "123970", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, here's the full scoop on autosizing web views.

\n

'auto' height works fine, and in fact WILL work with 'auto'\nwidth - it's just super ugly. This is because web views have a very\nbad habit of resizing their content so that it fits just outside of\nflexible widths, since 'document.width' lies about its values (but\ndocument.height, curiously, seems not to). Therefore the following\nare recommended:

\n
{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:35:53.000+0000", "updated": "2011-04-15T02:35:53.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }