Enforce minimimum window size when resizing player (#342)

For audio-only .mov files, which are 0x0.

Closes #340
This commit is contained in:
Feross Aboukhadijeh
2016-04-07 21:27:25 -07:00
parent da1e120de9
commit 8c2d49f029
4 changed files with 15 additions and 5 deletions

View File

@@ -66,8 +66,11 @@ module.exports = {
},
WINDOW_ABOUT: 'file://' + path.join(__dirname, 'renderer', 'about.html'),
WINDOW_MAIN: 'file://' + path.join(__dirname, 'renderer', 'main.html'),
WINDOW_WEBTORRENT: 'file://' + path.join(__dirname, 'renderer', 'webtorrent.html'),
WINDOW_MAIN: 'file://' + path.join(__dirname, 'renderer', 'main.html')
WINDOW_MIN_HEIGHT: 38 + (120 * 2), // header height + 2 torrents
WINDOW_MIN_WIDTH: 425
}
function isProduction () {