I create a small POC with Electron and React, but I cannot manage to make the canva fill the window, what I got were this: (see the black space on the bottom)
I don’t know exactly which option should do this, I believe was the adaptToDeviceRatio but I’ve tried it and don’t work either. I also applied the canva styles like the demos do, but still nothing work.
I create a scene component based on this doc and I’m using it to test.
As long as the canvas and parent container and document (body) are all 100% height or 100vh and meta viewport is set and zero out padding and margins, it should be full window.
Hello!
As an addition to @inteja keep in mind that the canvas has its own width and height property and a style.width and height property. So you can end up with a 200x200 px canvas (canvas.width x canvas.height) stretched to 1920x1080 (canvas.style.width x canvas.style.height).