Canvas Portrait

Hi.
If in my phone i pt the option of autorotate, and then put the phone in “horizontal”…
In my app the main screen choosed the option Portrait.
But in the first second the app starts, it begin in landscape mode, then inmediatly swithes to portrait…

I have a Canvas component, i read the WIDTH … so it reads the first state, as landscape…
How to solve it? If i put a delay could it solve the problem? Or is some trick for this Canvas state?

Thanks.

Try a delay of about 250ms