[TIMOB-1249] ImageView width and height: image and url difference
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2011-04-15T02:47:41.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | imageview, ios, width |
| Reporter | Mauro Braggio |
| Assignee | Reggie Seagraves |
| Created | 2011-04-15T02:47:40.000+0000 |
| Updated | 2017-03-09T23:15:25.000+0000 |
Description
var media = thumbnails.item(0).getAttribute("url");
Titanium.API.log( "thumbnails " + media );
//db.getImage( media );
var img = Ti.UI.createImageView({
url:media,
left:5,
width:60, height:60
});
row.add(img);
//db.getImage( media );
var img2 = Ti.UI.createImageView({
image :media,
right:5,
width:60, height:60
});
row.add(img2);
If i use url as parameter of ImageView , Titanium renders it as
a rect with the long side 60.
else if i use image, i view a 60x60 image
Attachments
| File | Date | Size |
|---|---|---|
| schermata-2010-07-08-a-163420.png | 2011-04-15T02:47:41.000+0000 | 67360 |
'url:' is deprectated. so 'image:' is the one to use now. ;)
I know, but url has better "image rendering" than image
Invalid.
urlandimageproperties on an imageview are equivalent, and one is specifically deprecated (as in, "don't use it.")Closing ticket as invalid.