Has anybody had any experience scaling the viewport when electron is fullscreen to that UI’s fill the same percentage of the screen, regardless of the screen resolution.
So for example, the default behaviour is, a div element that is 1024x768px will occupy a small part of the screen if a user monitor is 1920 x 1080
But if a user has a small monitor with the same resolution as the div, the div will occupy the whole screen.
What I would like some method to scale the viewport so that the 1024x768 div is always close to occupying the whole screen. (ignoring aspect ratio for now)
I’ve tried messing around with css transforms on document and body and a few other things but have not come up with a good result so far.
Would love to hear if any of you have a good solution that might save me a few hours of experimentation.