What I need is to have header/aside/footer layout with fixed proportions and then babylon canvas, which resizes to fill remaining space when window size changes. I created this JSFiddle.
I know this is more CSS question, but it might help others I believe. I searched various forums and spent literally hours trying to figure this out on my own. I’m sure it takes a few seconds for masters present!
This is exactly what I was looking for! Thank you!
I edited the JSFiddle as you proposed and implemented debouncing, this should also solve @JohnK performance issues. (although I didn’t encountered any [also on Firefox])