fix windows size cross-platform
This commit is contained in:
parent
2507ba2286
commit
d4e1f8b779
|
@ -10,7 +10,7 @@ let win
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
win = new BrowserWindow({ width: 393, height: 800, title: "Sengi", backgroundColor: '#FFF' });
|
win = new BrowserWindow({ width: 377, height: 800, title: "Sengi", backgroundColor: '#FFF', 'useContentSize': true });
|
||||||
|
|
||||||
var server = http.createServer(requestHandler).listen(9527);
|
var server = http.createServer(requestHandler).listen(9527);
|
||||||
win.loadURL('http://localhost:9527');
|
win.loadURL('http://localhost:9527');
|
||||||
|
|
Loading…
Reference in New Issue