@raydiant/playlist-window-manager 0.0.0-test-16 → 0.0.0-test-17

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.
@@ -85,7 +85,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
85
85
  this.browserWindowPool = new WindowPool();
86
86
  this.browserViewPool = new WindowPool();
87
87
  // Create a hidden window to preload BrowserViews.
88
- this.offscreenWindow = new electron_1.BrowserWindow(__assign(__assign({}, this.opts.bounds), { show: false, frame: this.opts.frame, hasShadow: this.opts.hasShadow, fullscreen: (0, boundUtils_1.isFullscreen)(this.opts.bounds), webPreferences: {
88
+ this.offscreenWindow = new electron_1.BrowserWindow(__assign(__assign({}, this.opts.bounds), { show: false, frame: this.opts.frame, hasShadow: this.opts.hasShadow, useContentSize: true, fullscreen: (0, boundUtils_1.isFullscreen)(this.opts.bounds), webPreferences: {
89
89
  preload: path.join(__dirname, 'preload.js'),
90
90
  } }));
91
91
  this.proxySettings = null;
@@ -277,6 +277,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
277
277
  throw new Error("Failed to show window, missing window id '".concat(windowId, "'"));
278
278
  }
279
279
  if (window.view instanceof electron_1.BrowserWindow) {
280
+ if (window.view.isFullScreen()) {
281
+ window.view.maximize();
282
+ }
280
283
  if (isFocused) {
281
284
  window.view.show();
282
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test-16",
3
+ "version": "0.0.0-test-17",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -65,6 +65,7 @@ export default class BrowserWindowRenderer
65
65
  show: false,
66
66
  frame: this.opts.frame,
67
67
  hasShadow: this.opts.hasShadow,
68
+ useContentSize: true,
68
69
  fullscreen: isFullscreen(this.opts.bounds),
69
70
  webPreferences: {
70
71
  preload: path.join(__dirname, 'preload.js'),
@@ -357,6 +358,9 @@ export default class BrowserWindowRenderer
357
358
  }
358
359
 
359
360
  if (window.view instanceof BrowserWindow) {
361
+ if (window.view.isFullScreen()) {
362
+ window.view.maximize();
363
+ }
360
364
  if (isFocused) {
361
365
  window.view.show();
362
366
  } else {