From 88f3c3d772dc1bacc6a4ac547f19d7b111652caa Mon Sep 17 00:00:00 2001 From: tarzzz Date: Mon, 23 Sep 2019 22:07:39 -0400 Subject: [PATCH] Enable additional options. * `enableLargerThanScreen`: Allows us to specify height/width larger than the max screen size. * `useContentSize`: Does not count the "top bar" in the size. Only the web-content size is taken into account. --- src/component/plotly-dash-preview/render.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/component/plotly-dash-preview/render.js b/src/component/plotly-dash-preview/render.js index 090cda62..bef71541 100644 --- a/src/component/plotly-dash-preview/render.js +++ b/src/component/plotly-dash-preview/render.js @@ -15,6 +15,8 @@ function render (info, opts, sendToMain) { const result = {} let createBrowserWindowOpts = info.browserSize ? info.browserSize : {} + createBrowserWindowOpts['enableLargerThanScreen'] = true + createBrowserWindowOpts['useContentSize'] = true createBrowserWindowOpts['show'] = opts.debug let win = remote.createBrowserWindow(createBrowserWindowOpts)