Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2005] Android: Image scaling test does not scale image

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:07:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect, image, scaling
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:07:54.000+0000
Updated2017-03-03T05:48:51.000+0000

Description

Image scaling test does not scale image
1.BaseUI>Views>Image Views> Image scaling
2.note size of image

results:loading the image path into a browser shows the same size icon as in the test. On iOS the image scales up quite a bit.

code:

var imageView = Titanium.UI.createImageView({

    url:'http://www.appcelerator.com/wp-content/uploads/2009/06/titanium_desk.png'
});

var l = Titanium.UI.createLabel({

text:'',
bottom:30,
color:'#999',
height:20,
width:300,
textAlign:'center'

}); win.add(l);

setTimeout(function() {

// wait for URL to load
var blob = imageView.toBlob();
l.text = blob.width + "x" + blob.height;

}, 2000);

not new behavior, goes back to 1.4.0 at least

Comments

  1. Don Thorp 2011-04-15

    Duplicate of #1434

  2. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source