{ "id": "61881", "key": "TIMOB-1249", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:47:41.000+0000", "created": "2011-04-15T02:47:40.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "imageview", "ios", "width" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:15:25.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}
\nvar media = thumbnails.item(0).getAttribute(\"url\");\n Titanium.API.log( \"thumbnails \" + media );\n //db.getImage( media );\n var img = Ti.UI.createImageView({\n url:media,\n left:5,\n width:60, height:60\n });\n row.add(img);\n\n //db.getImage( media );\n var img2 = Ti.UI.createImageView({\n image :media,\n right:5,\n width:60, height:60\n });\n row.add(img2);
\n
\nIf i use url as parameter of ImageView , Titanium renders it as\na rect with the long side 60.
\nelse if i use image, i view a 60x60 image
'url:' is deprectated. so 'image:' is the one to use now. ;)
I know, but url has better \"image rendering\" than image
Invalid. url
and image
properties on\nan imageview are equivalent, and one is specifically deprecated (as\nin, \"don't use it.\")