Skip to content

Commit

Permalink
Enable additional options.
Browse files Browse the repository at this point in the history
* `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.
  • Loading branch information
tarzzz committed Sep 24, 2019
1 parent 7adc6e3 commit 88f3c3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/component/plotly-dash-preview/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 88f3c3d

Please sign in to comment.