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
Tunji Dahunsi
07/05/2022, 2:56 PM
I was able to solve this by dynamically resizing the canvas with the onload and resize events on the browser window