Specify the minimum and maximum width and height when creating the window to limit it. You can set min and max to the same value so that the window does not change.
For example, here is the main.js change from the Hello World example:
chrome.app.runtime.onLaunched.addListener(function() { chrome.app.window.create('index.html', {minWidth: 500, minHeight: 309, maxWidth: 500, maxHeight: 309}); });
See api application window for details.
source share