Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1249] ImageView width and height: image and url difference

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:47:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsimageview, ios, width
ReporterMauro Braggio
AssigneeReggie Seagraves
Created2011-04-15T02:47:40.000+0000
Updated2017-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

FileDateSize
schermata-2010-07-08-a-163420.png2011-04-15T02:47:41.000+000067360

Comments

  1. kosso 2011-04-15

    'url:' is deprectated. so 'image:' is the one to use now. ;)

  2. Mauro Braggio 2011-04-15

    I know, but url has better "image rendering" than image

  3. Stephen Tramer 2011-04-15

    Invalid. url and image properties on an imageview are equivalent, and one is specifically deprecated (as in, "don't use it.")

  4. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source