Bug? Repeating backgroundImage in View on 1.8.1

You must Login before you can answer or comment on any questions.

I'm having issues with my repeated backgroundImage being stretched vertically on retina display. The regular version looks fine but on retina it does not.

leftButton = (leftButton) ? '48dp' : 0;
rightButton = (rightButton) ? '48dp' : 0;
 
var bar = Ti.UI.createView({
    backgroundImage: 'images/navbar/navbar.png',
    backgroundRepeat: true,
    height: '52dp',
    left: leftButton,
    right: rightButton,
    top: 0
});
I have both images, navbar.png and navbar@2x.png in the folder and I've checked them both out in Photoshop and they are fine.

Is there another setting I'm unaware of or could this be a bug since it's a new feature?

1 Answer

Have you tried using integers instead of 'dp' ? Just to confirm its not a problem with those ?

Your Answer

Think you can help? Login to answer this question!