[TIMOB-2005] Android: Image scaling test does not scale image
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Trivial |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2011-04-15T03:07:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 |
| Components | Android |
| Labels | android, defect, image, scaling |
| Reporter | Thomas Huelbert |
| Assignee | Don Thorp |
| Created | 2011-04-15T03:07:54.000+0000 |
| Updated | 2017-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
Duplicate of #1434
Closing issue due to time passed and irrelevance of the ticket.