@raydiant/playlist-window-manager 0.0.0-test-15 → 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,15 +85,9 @@ 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({
|
|
89
|
-
show: false,
|
|
90
|
-
frame: this.opts.frame,
|
|
91
|
-
hasShadow: this.opts.hasShadow,
|
|
92
|
-
fullscreen: (0, boundUtils_1.isFullscreen)(this.opts.bounds),
|
|
93
|
-
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: {
|
|
94
89
|
preload: path.join(__dirname, 'preload.js'),
|
|
95
|
-
}
|
|
96
|
-
});
|
|
90
|
+
} }));
|
|
97
91
|
this.proxySettings = null;
|
|
98
92
|
this.logger = opts.logger;
|
|
99
93
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor1 ".concat(JSON.stringify(opts.bounds)));
|
|
@@ -283,6 +277,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
283
277
|
throw new Error("Failed to show window, missing window id '".concat(windowId, "'"));
|
|
284
278
|
}
|
|
285
279
|
if (window.view instanceof electron_1.BrowserWindow) {
|
|
280
|
+
if (window.view.isFullScreen()) {
|
|
281
|
+
window.view.maximize();
|
|
282
|
+
}
|
|
286
283
|
if (isFocused) {
|
|
287
284
|
window.view.show();
|
|
288
285
|
}
|
package/package.json
CHANGED
|
@@ -61,9 +61,11 @@ export default class BrowserWindowRenderer
|
|
|
61
61
|
|
|
62
62
|
// Create a hidden window to preload BrowserViews.
|
|
63
63
|
private offscreenWindow = new BrowserWindow({
|
|
64
|
+
...this.opts.bounds,
|
|
64
65
|
show: false,
|
|
65
66
|
frame: this.opts.frame,
|
|
66
67
|
hasShadow: this.opts.hasShadow,
|
|
68
|
+
useContentSize: true,
|
|
67
69
|
fullscreen: isFullscreen(this.opts.bounds),
|
|
68
70
|
webPreferences: {
|
|
69
71
|
preload: path.join(__dirname, 'preload.js'),
|
|
@@ -356,6 +358,9 @@ export default class BrowserWindowRenderer
|
|
|
356
358
|
}
|
|
357
359
|
|
|
358
360
|
if (window.view instanceof BrowserWindow) {
|
|
361
|
+
if (window.view.isFullScreen()) {
|
|
362
|
+
window.view.maximize();
|
|
363
|
+
}
|
|
359
364
|
if (isFocused) {
|
|
360
365
|
window.view.show();
|
|
361
366
|
} else {
|