Is there a way to: - wait for the window `onLoad`...
# compose-web
t
Is there a way to: • wait for the window
onLoad
event • Resize the HTML5 canvas element compose for web renders on • Call
onWasmReady {}
Before rendering my Compose app? The examples declare a fixed window size in the samples. Using dom listeners just seem to stretch the canvas, I’m wondering if anyone has dealt with this already.
👀 2
I was able to solve this by dynamically resizing the canvas with the onload and resize events on the browser window
👍🏻 1