hi,
I’m working on a React app with react-babylonjs. The 3D viewport is declared as:
<Engine antialias adaptToDeviceRatio canvasId="babylon-js">
<Scene>
<arcRotateCamera
name="camera1"
target={Vector3.Zero()}
...
/>
<hemisphericLight
name="light1"
intensity={0.7}
direction={Vector3.Up()}
/>
<CustomMesh />
</Scene>
</Engine>
It seems when the canvas width is changed, the height is adjusted automatically to maintain the w:h ratio. How to override this behavior that width and height can be adjusted independently?