backgroundRepeat not working on iOS device

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

I am using backgroundRepeat on a view, it works perfectly on the iOS simulator, but not on the device.

var linenBackground = Titanium.UI.createView({
    top:0,
    left:0,
    width: ScreenWidth + 200,
    height: ScreenHeight,   
    backgroundImage: '/images/linen_beige.jpg',
    backgroundRepeat: true
});
On the device the single image is stretched.

Any ideas what can be wrong?

Titanium 2.0.1GA2 API, iOS 5.1 API

— asked 1 year ago by Rune Sandnes
3 Comments
  • I'm having the exact same problem. Everything works fine in the Simulator, but the device just stretches the backgroundImage instead of repeating it.

    I'm using Titanium Mobile SDK 1.8.2 on iOS 5.1

    — commented 1 year ago by Clifton Labrum

  • According to older comments I have found it seems to be a bug with backgroundRepeat on retina-display. The emulator is not retina-display by default, so there it would appear OK.

    It has not been fixed for 2.0.

    — commented 1 year ago by Rune Sandnes

  • FYI, similar thread here.

    — commented 1 year ago by Clifton Labrum

Your Answer

Think you can help? Login to answer this question!