What is the preferred way of setting the rendering
canvas size to be used for Babylon.js scene? I have issues probably with sizing.
In the first opening of the page the
canvas is not visible. When I inspect it from the developer tools I see the
height attributes are set
I use the
canvas in an app inside another
HTMLElement. I want
canvas to be as wide and high as that
HTMLElement. Most of the examples in the playground are setting the
canvas size by its attributes, hence to pixels. But what I need is the full
height of the parent element of the
I have tried setting percentage values in css it did not work. The attributes does not accept percentage values, they are regarded as pixels anyway.
How can I achieve this properly?