From 9a2d0d037afa89ca9c2431574d01e6da3cb5c762 Mon Sep 17 00:00:00 2001 From: tarzzz Date: Mon, 23 Sep 2019 15:57:07 -0400 Subject: [PATCH] Supply default width/height. --- src/component/plotly-dash-preview/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/plotly-dash-preview/render.js b/src/component/plotly-dash-preview/render.js index d4259172..dbcc3e23 100644 --- a/src/component/plotly-dash-preview/render.js +++ b/src/component/plotly-dash-preview/render.js @@ -14,7 +14,7 @@ const cst = require('./constants') function render (info, opts, sendToMain) { const result = {} - let windowOpts = info.browserSize ? info.browserSize : {} + let windowOpts = info.browserSize ? info.browserSize : { 'width': 800, 'height': 600 } windowOpts['show'] = opts.debug let win = remote.createBrowserWindow(windowOpts)