window: enforce minimum width
This commit is contained in:
3
index.js
3
index.js
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user