I am facing a problem with the CesiumWidget rotation on mobile development.
"new Cesium.CesiumWidget('map3D', options);"
In general it works, really great to be honest.
The problem comes when I rotate the smartphone.
In case of rotation the globe loses its aspect and becomes totally unresponsive.
I am thinking each time I detect a rotation, to destroy the globe and create it again. It is not the best option but honestly I have not found any other so far.
I have tried with no success to change the aspect ratio in case this is the problem:
cesiumGlobe.scene.getCamera().frustum.aspectRatio = width / height;
I am trying to call resize() method from the CesiumWidget prototype with no success.("TypeError: 'undefined' is not an object (evaluating 'canvas.clientWidth')")
Is it an "expected" behaviour or something that has not been considered yet? If so, Do you have guy any idea about which direction should i take to make it work?
Thank you very much for your time and patience
I attach two screenshots to clarify the explanation