Imagine there is an image named hello.png
with the dimensions of 200x100
.
A button is then created using this hello.png
as shown below:
var btn = Titanium.UI.createButton({
bottom : 50,
backgroundImage : "images/hello.png",
width:100,
height:"auto";
});
window.add(btn);
If we consider the height of the button on the device, what would it be? Would it match the actual height of the original image (200 pixels) or would it be significantly less (e.g. only 50 pixels)?
Although research indicates that the button should be 200 pixels in height, when the app is compiled, the button appears to be drastically smaller :/