{ "id": "61069", "key": "TIMOB-437", "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": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:03.000+0000", "created": "2011-04-15T02:29:18.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:03.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}

see test case:

\n
\nvar win= Ti.UI.createWindow();\nvar headerView = Ti.UI.createLabel({ 
color:'white', 
text:'Quick bits of info' 
});\nvar row = Ti.UI.createTableViewRow({height:'auto'}); 
\nvar html= '<html><body><table ><tr><td style=\"font-weight:bold;color:#111\" valign=\"top\" width=\"100\">Label</td><td valign=\"top\">I am a lot of text that may wrap or may not</td></tr>'; \n
html+= '<tr><td style=\"font-weight:bold\">Label</td><td>I am a lot of text that may wrap or may not</td></tr></table></body></html>';\nvar wv = Ti.UI.createWebView({top:10,bottom:10,html:html, height:'auto'});\nrow.add(wv);\n// create table view 
var tableview = Titanium.UI.createTableView({ 
data:[row], 
style: Titanium.UI.iPhone.TableViewStyle.GROUPED 
}); 
win.add(tableview);\nwin.open();\n
{html}", "attachment": [], "flagged": false, "summary": "height auto on row does not work with web view height auto", "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": "123291", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Possible concerns:

\n

To get the auto height of a web view (Like in 0.8) the\njavascript of document.height was used. However, that number is\nvalid only after the page loads. Using the standard page loading\ncalls, that only happens during NSDefaultRunLoopMode, (why web\npages in 0.6 or so wouldn't load in a table view while\nscrolling.)

\n

The workaround was to cheat and doing a document.write() to\nforce HTML into the dom of about:blank, but this happens\nsynchronously. I fear that heavy use will block the UI in ways that\nnormal page loadings don't.

\n

And even then, testing with document.height and document.width\nwas often very touchy.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:29:19.000+0000", "updated": "2011-04-15T02:29:19.000+0000" }, { "id": "123292", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Linking to issue #509, which is a more accurate reason of the\nproblem.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:29:19.000+0000", "updated": "2011-04-15T02:29:19.000+0000" }, { "id": "123293", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2fdbd20b82603d96e720b868ffc901bfdba8bede])\nCloses #437 \nhttp://github.com/appcelerator/titanium_mobile/commit/2fdbd20b82603...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:29:20.000+0000", "updated": "2011-04-15T02:29:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }