Answers for "electron fullscreen window"

0

fullscreen electron

BrowserWindow.maximize()
Posted by: Guest on January-09-2021
0

electron specify minimum size

const screenElectron = electron.screen;
const display = screenElectron.getPrimaryDisplay();
const dimensions = display.workAreaSize;
mainWindow = new BrowserWindow({
    width: parseInt(dimensions.width * 0.8),
    height: parseInt(dimensions.height * 0.8),
    minWidth: parseInt(dimensions.width * 0.8),
    minHeight: parseInt(dimensions.height * 0.8),
    maxWidth: dimensions.width,
    maxHeight: dimensions.height,
    icon: `${__dirname}/assets/icon.ico`
  });
Posted by: Guest on February-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language