Position of Images changed when run on Device

Hi,

I used the following piece of code to set position of images.

 list.x = display.contentWidth/2;  
 list.y = display.contentHeight - 25  

In the simulator the image is at the bottom center of the screen, as desired. I checked this for all builds on simulator (Iphone 4, Ipad Retina, IPad, IPhone)

But when I run it on an IPad the Image was at the top of the screen. The x co ordinate wasn’t same either.
What could be the reason? [import]uid: 175611 topic_id: 34230 reply_id: 334230[/import]

Did it draw it in the top left corner?

That usually happens if there is an error before you try and position the items, since by default the images draw at 0,0 immediately after loading until you move them by setting their x,y.

Tether your iPad to your computer, use XCode’s Organizer to look at your console log for any errors. [import]uid: 199310 topic_id: 34230 reply_id: 136122[/import]

Got it, thanks a lot Rob. [import]uid: 175611 topic_id: 34230 reply_id: 136334[/import]

Did it draw it in the top left corner?

That usually happens if there is an error before you try and position the items, since by default the images draw at 0,0 immediately after loading until you move them by setting their x,y.

Tether your iPad to your computer, use XCode’s Organizer to look at your console log for any errors. [import]uid: 199310 topic_id: 34230 reply_id: 136122[/import]

Got it, thanks a lot Rob. [import]uid: 175611 topic_id: 34230 reply_id: 136334[/import]