json - How do you make a Chrome App automatically launch in a maximized window? -


i making chrome application , wondering how make program automatically run in maximized window. manifest.json defaulted 800x600 want fill whatever largest dimensions are. saw on 1 of google's developer pages can use maxwidth , maxheight this, don't know in manifest.json potentially put values. thanks!

this state not controlled manifest.

see very first tutorial on apps: window parameters set in background script when create window chrome.app.window.create.

so, let's go see documentation chrome.app.window.create().

it takes parameter of type createwindowoptions. let's see its documentation.

(optional) state

enum of "normal", "fullscreen", "maximized", or "minimized"

the initial state of window, allowing created fullscreen, maximized, or minimized. defaults 'normal'.

for example:

chrome.app.window.create('index.html', {    id: 'mainwindow',   bounds: {width: 800, height: 600},   state: 'maximized' });  

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -