window: enforce minimum width

This commit is contained in:
Feross Aboukhadijeh
2016-03-02 17:59:29 -08:00
parent efec67688c
commit 74fc8b11ea

View File

@@ -59,7 +59,8 @@ function createMainWindow () {
show: false, show: false,
title: 'WebTorrent', title: 'WebTorrent',
titleBarStyle: 'hidden-inset', titleBarStyle: 'hidden-inset',
width: 600 width: 600,
minWidth: 360
}) })
win.loadURL('file://' + path.join(__dirname, 'main', 'index.html')) win.loadURL('file://' + path.join(__dirname, 'main', 'index.html'))
win.webContents.on('did-finish-load', function () { win.webContents.on('did-finish-load', function () {