App is not fitting in screen while projecting in projector [resolution/resize issue]


#1

Hi,

I created an electron app, when i try to project that in projector screen, app is not fitting into the screen but it is working fine in my laptop and desktop.Can some one help me how to set screen size that will fit into projector screen.

This is how i set screen size

main.js

app.on(‘ready’, function() {

const electron = require(‘electron’);
const {app, BrowserWindow} = electron;
const {width, height} = electron.screen.getPrimaryDisplay().workAreaSize;

win = new BrowserWindow({icon: ‘file://’ + __dirname + ‘resources/images/umt.png’,width: width, height: height,movable:true, frame: false, webPreferences: {webSecurity: true} });

}

Thanks


#2

Your code seems sensible. Perhaps it is a problem with your desktop settings. Maybe your screen size is bigger than the resolution your projector supports.


#3

Found the issue, I need to change the screen settings in my mac [mirror display settings] while connecting to projector.Now its working fine