Electron Take Up 100% Of Screen (Not Full Screen) -


i've got electron app, below main.js file:

var app = require('electron').app; var browserwindow = require('electron').browserwindow;  app.on('ready', function() {     mainwindow = new browserwindow({         height: 715,         width: 1200,         minwidth: 600,         minheight: 200,         center: true     });      mainwindow.loadurl('file://' + __dirname + '/index.html'); }); 

as can see, width , height specified. want app open, take of available screen (but not in full screen, such dock , tool bar of os hidden).

in simple css done using

width:100%; height:100%; 

i want able reproduce in electron app, although cannot seem find details on how it

note: fullscreen: true not looking for, makes app open dock , toolbar hidden

can help?

call mainwindow.maximize() maximize window after create it.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -