I have a scene that I want layered in a vertical flex container, top zone the three scene and a fixed height bar below. I created two divs in a flex container and the canvas inside the first div.
Here you can see what I want in terms of layout: (discard the scene as it is not resized yet)
On creation and on window resize, I set the size of the renderer = the size of its wrapping div that supposedly has been re-layered:
After setting the render size on creation of the scene, it appears that apparent padding (?) at the bottom. If you resize the whole window the canvas seems to be growing and breaks the flex layout.
I think that the relevant stuff is in the function resized at the bottom. I’ve omitted the camera setup to make thinks clearer
Am I missing something?