The design resolution settings in appDelegate are used to get a consistent placement.
If you are designing for 480 x 320 then a position of 10px will be automatically doubled when running on a screen that’s 960 x 640.
But what happens when you are running at 1024 x 768?
If you are using kResolutionNoBorder then its going to zoom in to fit the screen width without stretching.
10px from the left hand edge might now be off the screen.
There is some code somewhere on this site called VisibleRect.
Its a class that you can use to give you position that will always be in the correct position.
So if you want to position a button in the top right corner then you might do something like
button~~>setPosition~~ 10px, VisibleRect::Top() - 10)).
You could also say button~~>setAnchor //top right corner becomes 0,0 position
and then do
button~~>setPosition(VisibelRect::TopRight) //will align top right corner of button to be top right corner of screen.
This will set the position to be the same on all devices even with kResolutionNoBorder zooming.