Merge pull request #418 from mattermost/jasonblais-patch-3

Update default window dimensions to 1000x700

Close #353
This commit is contained in:
Yuya Ochiai
2017-01-20 21:59:46 +09:00
committed by GitHub

View File

@@ -441,8 +441,8 @@ app.on('ready', () => {
try {
windowOptions = getValidWindowPosition(JSON.parse(fs.readFileSync(boundsInfoPath, 'utf-8')));
} catch (e) {
// follow Electron's defaults
windowOptions = {};
// Follow Electron's defaults, except for window dimensions which targets 1024x768 screen resolution.
windowOptions = {width: 1000, height: 700};
}
if (process.platform === 'linux') {
windowOptions.icon = path.resolve(assetsDir, 'appicon.png');