06-20-2023, 09:33 PM
I am sure that it is not related to the device DPR!
Because as I was explaining in the original thread, the dimensions were right for the onAsybcResize and onAsyncOrientationChange!
The dimensions were wrong only for the onRender event!
And it is still the case!
If you run the demo I posted before, you will see that the correct available browser dimensions are displayed for the onAsyncResize and onAsyncOrientationChange!
And those dimensions can be retrieved correctly from any event using the JavaScript code below:
var available_width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
var available_height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
Because as I was explaining in the original thread, the dimensions were right for the onAsybcResize and onAsyncOrientationChange!
The dimensions were wrong only for the onRender event!
And it is still the case!
If you run the demo I posted before, you will see that the correct available browser dimensions are displayed for the onAsyncResize and onAsyncOrientationChange!
And those dimensions can be retrieved correctly from any event using the JavaScript code below:
var available_width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
var available_height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;

