So I have a logo image, which I'm scaling to be 50% of the view it's in. However, sometimes it looks like it's another 50% smaller than that. It'll grow and shink, seemingly randomly, as I close and reopen the app.
Here's my code where I create it:
var logo = Titanium.UI.createImageView({ left: 10, image: 'http://www.example.com/path/to/logo.png', width: '50%' });That logo is added to a view, which is added to a TableViewRow, which is put in an array, which is assinged as the data for a TableView.
Why is my image changing sizes? How do I make it consistently the same size?
1 Answer
It seems if I query its height (by doing logo.toImage().height), it will always be the same, and always be what I want it to be. That's stupid.
Your Answer
Think you can help? Login to answer this question!