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

@@ -82,8 +82,8 @@ function createMainWindow () {
backgroundColor: '#1E1E1E',
darkTheme: true, // Forces dark theme (GTK+3)
icon: config.APP_ICON + '.png',
minWidth: 425,
minHeight: 38 + (120 * 2), // header height + 2 torrents
minWidth: config.WINDOW_MIN_WIDTH,
minHeight: config.WINDOW_MIN_HEIGHT,
show: false, // Hide window until DOM finishes loading
title: config.APP_WINDOW_TITLE,
titleBarStyle: 'hidden-inset', // Hide OS chrome, except traffic light buttons (OS X)