{ "id": "61813", "key": "TIMOB-1181", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:26.000+0000", "created": "2011-04-15T02:46:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:26.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": "{html}

I'm trying to use Ti.UI.createWebView to display text and images\nin a tab. The text and HTML formatting works fine but the image\nresolves as 404/broken image. Attached is a screenshot of it\nrunning in simulator.

\n

If the image is called using Ti.Ui.createImageView then the\nimage does show but the developer is then dependent on absolute\npositioning as opposed to relative positioning which (relative\npositioning) is ideal.

\n

Also attached is a quick and dirty example project.

{html}", "attachment": [ { "id": "17938", "filename": "image_404.jpg", "author": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:46:02.000+0000", "size": 23942, "mimeType": "image/jpeg" }, { "id": "17939", "filename": "test.zip", "author": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:46:04.000+0000", "size": 6090129, "mimeType": "application/zip" } ], "flagged": false, "summary": "Images using Ti.UI.createImageView vs Ti.UI.createWebView", "creator": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125027", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [307ef5d409352ddf79b1f6ff029de521eec38bdb])\n[#1181 state:resolved] Changed setting of html\nproperty on webview to not munge the document and allow access to\nlocal resources by setting the base url to\nfile:///android_asset/Resources/ if a document is loaded with any\nexternal baseurl Android prevents access to local assets \nhttp://github.com/appcelerator/titanium_mobile/commit/307ef5d409352...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:46:05.000+0000", "updated": "2011-04-15T02:46:05.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }