It is a 3 col responsive flexbox layout (css by Bulma.io). The middle colum contains the canvas and is invisible for mobile devices. please resize your browser, the breakpoint is at 1088px. after the canvas is hidden once, it’s height stays at 0px;
bjs isn’t just align with that value, bjs is modifing it. It does it corectly with the width, but seem to looses the height and the ratio - in that responsive reactions. In the codepen above, the parents width is defined and the height isn’t limited.
The used bulma library is css only, there is no other js than babylon able to edit the DOM.
I dont know what makes bjs set the canvas height to 0.
What can I do? I do have a width and a ratio, how can I restore the height out of it?
Does look like some weird issue, seems if the canvas is set to 0 height, it won’t be expanded again.
This fixes it… Canvas won’t be resized when column is hidden, and force the column to expand it’s height when it’s displayed again.