📅  最后修改于: 2022-03-11 15:03:34.154000             🧑  作者: Mango
chrome.system.display.getInfo((screens) => {
screens.forEach((screen) => {
chrome.app.window.create("app.html", {
outerBounds: screen.workArea // It so happens it's formatted as expected
});
});
});
"system.display" permission required
If you pass outerBounds.top/outerBounds.left properties to chrome.app.window.create, those actually refer to the combined coordinate space, not the current monitor. Chrome will likely clamp/shift what you pass to it to fit in the screen.