如何在显示屏中创建充满可用空间的新窗口。
function CreateWindow () {
chrome.app.window.create("Spreadsheet.html" , {
"bounds" : {
"width" : 500, // need full width and height
"height": 400
}
});
}
chrome.app.runtime.onLaunched.addListener(CreateWindow);