force screensize

desktop-master-git2
bunsenstraat 3 months ago
parent 2df5372cb2
commit 14d316ebd5
  1. 8
      apps/remixdesktop/src/main.ts
  2. 4
      apps/remixdesktop/test/nighwatch.app.ts

@ -36,8 +36,8 @@ const windowSet = new Set<BrowserWindow>([]);
export const createWindow = async (dir?: string): Promise<void> => { export const createWindow = async (dir?: string): Promise<void> => {
// Create the browser window. // Create the browser window.
const mainWindow = new BrowserWindow({ const mainWindow = new BrowserWindow({
width: 3840,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8), width: 1000,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8),
height: 2160, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8), height: 1000, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8),
frame: true, frame: true,
webPreferences: { webPreferences: {
preload: path.join(__dirname, 'preload.js') preload: path.join(__dirname, 'preload.js')
@ -66,8 +66,8 @@ export const createWindow = async (dir?: string): Promise<void> => {
windowSet.delete(mainWindow) windowSet.delete(mainWindow)
}) })
if (isE2E) //if (isE2E)
mainWindow.maximize() // mainWindow.maximize()
windowSet.add(mainWindow) windowSet.add(mainWindow)
//mainWindow.webContents.openDevTools(); //mainWindow.webContents.openDevTools();

@ -75,8 +75,8 @@ module.exports = {
if(useOffline) args = [...args, '--useOffline']; if(useOffline) args = [...args, '--useOffline'];
// Set display size // Set display size
const windowSize = "--window-size=2920,2080"; const windowSize = "--window-size=1000,1000";
args = [...args, windowSize]; args = [...args];
switch (type) { switch (type) {
case 'Windows_NT': case 'Windows_NT':

Loading…
Cancel
Save