03-21-2023, 03:20 PM
It corresponds to what I was saying. If you display the dimensions they will be right
The problem occurs on mobile devices when you try to define positions of components. Personally I use onAsyncResize only on mobile devices to see if the user has turned his device portrait or landscape.
I have attached a simple test. It should work fine on a desktop.
But I tested it both on Android (Chrome browser) and Safari (IPhone) and the components positions are not right certainly due to the fact the onResize events rendering is delayed!
The problem occurs on mobile devices when you try to define positions of components. Personally I use onAsyncResize only on mobile devices to see if the user has turned his device portrait or landscape.
I have attached a simple test. It should work fine on a desktop.
But I tested it both on Android (Chrome browser) and Safari (IPhone) and the components positions are not right certainly due to the fact the onResize events rendering is delayed!

