Application suspend and resume alignment issues

Hi,

When testing on android if the device forces a application suspend after it resumes all of my graphics go out of line with screen. Im using letterbox mode and it seems the extra space on the left of my screen gets ignored.

Has any one else experienced this issue and if so how can easily fix it? Thanks [import]uid: 118379 topic_id: 34135 reply_id: 334135[/import]

Hi @Beloudest,
What device are you using? Do you have any transitions going on or any movement during the suspend? I seem to recall seeing this issue mentioned by another user in the past month, but I can’t remember if it was exactly the same behavior… either way, it’s very odd.

Brent
[import]uid: 200026 topic_id: 34135 reply_id: 135774[/import]

No nothing, I thinks its the display.screenOriginX is for some reason set back to zero and when app resumes everything shifts left because its not been taken into account as before. I’m only guessing at this stage but the distance everything is off seems to fit with extra width on android devices.

im using 480x320 with letterbox, thus adding extra space on the sides.

I have just turned application suspend off and call os.exit on suspend too. this is a fix yet I would rather I could use the application resume feature. It mainly happens on my menus which use the display.screenOriginX the most.

Maybe I should storing display.screenOriginX on bootup and then that variable will keep its value?

If you think of anything let me know, be top notch :slight_smile: [import]uid: 118379 topic_id: 34135 reply_id: 135793[/import]

There is a known bug (#19263) where changing the xAlign or yAlign in config.lua causes a screen shift upon resume. The bug is the parameter is not applied when the Android app resume. (Not an issue on iOS.) [import]uid: 7559 topic_id: 34135 reply_id: 135827[/import]

YEAHHH! I thought this much.

Great news its you guys and not me. So is there a work around? Maybe I was already on the right lines in my last post.

[import]uid: 118379 topic_id: 34135 reply_id: 135830[/import]

The only workaround is not to use xAlign or yAlign in your config.lua. [import]uid: 7559 topic_id: 34135 reply_id: 135833[/import]

Hi @Beloudest,
What device are you using? Do you have any transitions going on or any movement during the suspend? I seem to recall seeing this issue mentioned by another user in the past month, but I can’t remember if it was exactly the same behavior… either way, it’s very odd.

Brent
[import]uid: 200026 topic_id: 34135 reply_id: 135774[/import]

No nothing, I thinks its the display.screenOriginX is for some reason set back to zero and when app resumes everything shifts left because its not been taken into account as before. I’m only guessing at this stage but the distance everything is off seems to fit with extra width on android devices.

im using 480x320 with letterbox, thus adding extra space on the sides.

I have just turned application suspend off and call os.exit on suspend too. this is a fix yet I would rather I could use the application resume feature. It mainly happens on my menus which use the display.screenOriginX the most.

Maybe I should storing display.screenOriginX on bootup and then that variable will keep its value?

If you think of anything let me know, be top notch :slight_smile: [import]uid: 118379 topic_id: 34135 reply_id: 135793[/import]

There is a known bug (#19263) where changing the xAlign or yAlign in config.lua causes a screen shift upon resume. The bug is the parameter is not applied when the Android app resume. (Not an issue on iOS.) [import]uid: 7559 topic_id: 34135 reply_id: 135827[/import]

YEAHHH! I thought this much.

Great news its you guys and not me. So is there a work around? Maybe I was already on the right lines in my last post.

[import]uid: 118379 topic_id: 34135 reply_id: 135830[/import]

The only workaround is not to use xAlign or yAlign in your config.lua. [import]uid: 7559 topic_id: 34135 reply_id: 135833[/import]

what about on Orientation change?
I have same bug when rotating Android tablet device. 4.0+
black line appears on left. [import]uid: 96683 topic_id: 34135 reply_id: 140958[/import]

what about on Orientation change?
I have same bug when rotating Android tablet device. 4.0+
black line appears on left. [import]uid: 96683 topic_id: 34135 reply_id: 140958[/import]