@raydiant/playlist-window-manager 0.0.0-test-7 → 0.0.0-test-8
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.
|
@@ -88,14 +88,13 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
88
88
|
show: false,
|
|
89
89
|
frame: this.opts.frame,
|
|
90
90
|
hasShadow: this.opts.hasShadow,
|
|
91
|
+
fullscreen: true,
|
|
91
92
|
webPreferences: {
|
|
92
93
|
preload: path.join(__dirname, 'preload.js'),
|
|
93
94
|
},
|
|
94
95
|
});
|
|
95
96
|
this.proxySettings = null;
|
|
96
97
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor1 ".concat(JSON.stringify(opts.bounds)));
|
|
97
|
-
// TODO zlv added
|
|
98
|
-
this.offscreenWindow.setFullScreen(true);
|
|
99
98
|
this.offscreenWindow.setBounds(opts.bounds);
|
|
100
99
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ".concat(JSON.stringify({
|
|
101
100
|
bounds: this.offscreenWindow.getBounds(),
|
|
@@ -190,8 +189,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
190
189
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ".concat(JSON.stringify(window.bounds)));
|
|
191
190
|
// TODO zlv added
|
|
192
191
|
if (window.view instanceof electron_1.BrowserWindow) {
|
|
193
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:
|
|
194
|
-
window.view.setFullScreen(true);
|
|
192
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:");
|
|
195
193
|
window.view.setBounds(window.bounds);
|
|
196
194
|
}
|
|
197
195
|
else {
|
|
@@ -242,8 +240,6 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
242
240
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds2: ".concat(JSON.stringify(__assign(__assign({}, window.bounds), { x: window.bounds.x + this.opts.bounds.x, y: window.bounds.y + this.opts.bounds.y }))));
|
|
243
241
|
// Child BrowserWindows are absolutely positioned so we need to add the main windows
|
|
244
242
|
// x/y to when updating the child window's bounds.
|
|
245
|
-
// TODO zlv added
|
|
246
|
-
window.view.setFullScreen(true);
|
|
247
243
|
window.view.setBounds(__assign(__assign({}, window.bounds), { x: window.bounds.x + this.opts.bounds.x, y: window.bounds.y + this.opts.bounds.y }));
|
|
248
244
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ".concat(JSON.stringify({
|
|
249
245
|
bounds: window.view.getBounds(),
|
package/package.json
CHANGED
|
@@ -62,6 +62,7 @@ export default class BrowserWindowRenderer
|
|
|
62
62
|
show: false,
|
|
63
63
|
frame: this.opts.frame,
|
|
64
64
|
hasShadow: this.opts.hasShadow,
|
|
65
|
+
fullscreen: true,
|
|
65
66
|
webPreferences: {
|
|
66
67
|
preload: path.join(__dirname, 'preload.js'),
|
|
67
68
|
},
|
|
@@ -77,8 +78,6 @@ export default class BrowserWindowRenderer
|
|
|
77
78
|
opts.bounds
|
|
78
79
|
)}`
|
|
79
80
|
);
|
|
80
|
-
// TODO zlv added
|
|
81
|
-
this.offscreenWindow.setFullScreen(true);
|
|
82
81
|
this.offscreenWindow.setBounds(opts.bounds);
|
|
83
82
|
opts.logger.info(
|
|
84
83
|
`playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ${JSON.stringify(
|
|
@@ -236,9 +235,8 @@ export default class BrowserWindowRenderer
|
|
|
236
235
|
// TODO zlv added
|
|
237
236
|
if (window.view instanceof BrowserWindow) {
|
|
238
237
|
this.logger.info(
|
|
239
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5
|
|
238
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:`
|
|
240
239
|
);
|
|
241
|
-
window.view.setFullScreen(true);
|
|
242
240
|
window.view.setBounds(window.bounds);
|
|
243
241
|
} else {
|
|
244
242
|
this.logger.info(
|
|
@@ -299,8 +297,6 @@ export default class BrowserWindowRenderer
|
|
|
299
297
|
|
|
300
298
|
// Child BrowserWindows are absolutely positioned so we need to add the main windows
|
|
301
299
|
// x/y to when updating the child window's bounds.
|
|
302
|
-
// TODO zlv added
|
|
303
|
-
window.view.setFullScreen(true);
|
|
304
300
|
window.view.setBounds({
|
|
305
301
|
...window.bounds,
|
|
306
302
|
x: window.bounds.x + this.opts.bounds.x,
|