Babylon canvas and flex layout

Btw we had a relatively similar discussion here: Engine.resize() on html element size change - Questions - Babylon.js (babylonjs.com) and what worked was adding engine.resize() to the render loop function.