I have a canvas
nested in a CSS grid. To get it to resize correctly I have to use parentElement
i.e.
renderer.setSize(canvas.parentElement.clientWidth, canvas.parentElement.clientHeight);
Which seems… clunky at best. Is there a better way?
If I use canvas.clientWidth, canvas.clientHeight
the canvas
keeps the same size or worse shrinks.
TIA