@raydiant/playlist-window-manager 0.0.0-test31 → 0.0.0-test32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,22 +149,17 @@ var BrowserWindowRenderer = /** @class */ (function () {
149
149
  contextIsolation: false,
150
150
  },
151
151
  })
152
- : this.createOrGetPooledBrowserWindow(windowId, {
153
- show: false,
154
- frame: this.opts.frame,
155
- fullscreen: this.opts.fullscreen,
152
+ : this.createOrGetPooledBrowserWindow(windowId, __assign({ show: false, frame: this.opts.frame, fullscreen: this.opts.fullscreen,
156
153
  // NOTE: useWindowPool: true does not work with renderChildWindowsAsBrowserViews: false
157
154
  // because the parent can't be changed after creating the BrowserWindow.
158
155
  parent: parentWindowId
159
156
  ? this.getParentBrowserView(parentWindowId)
160
- : undefined,
161
- transparent: backgroundColor === 'transparent',
162
- hasShadow: this.opts.hasShadow,
163
- webPreferences: {
157
+ : undefined, transparent: backgroundColor === 'transparent', hasShadow: this.opts.hasShadow, webPreferences: {
164
158
  preload: path.join(__dirname, 'preload.js'),
165
159
  contextIsolation: false,
166
- },
167
- }),
160
+ } }, (this.opts.fullscreen
161
+ ? { width: bounds.width, height: bounds.height }
162
+ : {}))),
168
163
  // If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
169
164
  // we are rendering child windows with BrowserWindow. BrowserWindows are positioned absolutely so
170
165
  // to place them in the correct spot relative to their parent we need to add the main window's x / y.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test31",
3
+ "version": "0.0.0-test32",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -157,6 +157,9 @@ export default class BrowserWindowRenderer
157
157
  preload: path.join(__dirname, 'preload.js'),
158
158
  contextIsolation: false,
159
159
  },
160
+ ...(this.opts.fullscreen
161
+ ? { width: bounds.width, height: bounds.height }
162
+ : {}),
160
163
  }),
161
164
  // If we are creating a child window and renderChildWindowsAsBrowserViews is false that means
162
165
  // we are rendering child windows with BrowserWindow. BrowserWindows are positioned absolutely so