Hi,
When I launch my OSX app in fullscreen mode, I have a problem with positioning of items on the screen.
There is one graphic I’m positioning based on the screen width - I want it 10 pixels from the left hand edge of the screen. But - it seems that this piece of code is running before the app has completed its “going fullscreen” process, so the positioning is off. If I then run the piece of code again a second later, the graphic is positioned correctly, but I can’t get it to start off in the right position.
I’m using the following code to get the x offset I need to apply to the graphic’s regular x position.
local xOffset = (display.actualContentWidth - display.contentWidth)/2;
I assume the value for display.actualContentWidth is being returned differently whilst the app is still launching. In the simulator it works fine though.
Does anyone know of a way of saying basically “don’t load this content until you’ve finished the full screen launch process”?
Thanks,
Ian