@raydiant/playlist-window-manager 0.0.0-test-6 → 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,16 +88,14 @@ 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
|
-
|
|
98
|
-
this.offscreenWindow.setFullScreen(true);
|
|
99
|
-
// TODO zlv commented out
|
|
100
|
-
// this.offscreenWindow.setBounds(opts.bounds);
|
|
98
|
+
this.offscreenWindow.setBounds(opts.bounds);
|
|
101
99
|
opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ".concat(JSON.stringify({
|
|
102
100
|
bounds: this.offscreenWindow.getBounds(),
|
|
103
101
|
normalBounds: this.offscreenWindow.getNormalBounds(),
|
|
@@ -191,8 +189,8 @@ var BrowserWindowRenderer = /** @class */ (function () {
|
|
|
191
189
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ".concat(JSON.stringify(window.bounds)));
|
|
192
190
|
// TODO zlv added
|
|
193
191
|
if (window.view instanceof electron_1.BrowserWindow) {
|
|
194
|
-
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:
|
|
195
|
-
window.view.
|
|
192
|
+
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:");
|
|
193
|
+
window.view.setBounds(window.bounds);
|
|
196
194
|
}
|
|
197
195
|
else {
|
|
198
196
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds");
|
|
@@ -242,14 +240,7 @@ 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
|
-
|
|
246
|
-
// window.view.setBounds({
|
|
247
|
-
// ...window.bounds,
|
|
248
|
-
// x: window.bounds.x + this.opts.bounds.x,
|
|
249
|
-
// y: window.bounds.y + this.opts.bounds.y,
|
|
250
|
-
// });
|
|
251
|
-
// TODO zlv added
|
|
252
|
-
window.view.setFullScreen(true);
|
|
243
|
+
window.view.setBounds(__assign(__assign({}, window.bounds), { x: window.bounds.x + this.opts.bounds.x, y: window.bounds.y + this.opts.bounds.y }));
|
|
253
244
|
this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ".concat(JSON.stringify({
|
|
254
245
|
bounds: window.view.getBounds(),
|
|
255
246
|
normalBounds: window.view.getNormalBounds(),
|
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,10 +78,7 @@ export default class BrowserWindowRenderer
|
|
|
77
78
|
opts.bounds
|
|
78
79
|
)}`
|
|
79
80
|
);
|
|
80
|
-
|
|
81
|
-
this.offscreenWindow.setFullScreen(true);
|
|
82
|
-
// TODO zlv commented out
|
|
83
|
-
// this.offscreenWindow.setBounds(opts.bounds);
|
|
81
|
+
this.offscreenWindow.setBounds(opts.bounds);
|
|
84
82
|
opts.logger.info(
|
|
85
83
|
`playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ${JSON.stringify(
|
|
86
84
|
{
|
|
@@ -237,9 +235,9 @@ export default class BrowserWindowRenderer
|
|
|
237
235
|
// TODO zlv added
|
|
238
236
|
if (window.view instanceof BrowserWindow) {
|
|
239
237
|
this.logger.info(
|
|
240
|
-
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5
|
|
238
|
+
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5:`
|
|
241
239
|
);
|
|
242
|
-
window.view.
|
|
240
|
+
window.view.setBounds(window.bounds);
|
|
243
241
|
} else {
|
|
244
242
|
this.logger.info(
|
|
245
243
|
`playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds`
|
|
@@ -299,14 +297,11 @@ 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
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
// });
|
|
308
|
-
// TODO zlv added
|
|
309
|
-
window.view.setFullScreen(true);
|
|
300
|
+
window.view.setBounds({
|
|
301
|
+
...window.bounds,
|
|
302
|
+
x: window.bounds.x + this.opts.bounds.x,
|
|
303
|
+
y: window.bounds.y + this.opts.bounds.y,
|
|
304
|
+
});
|
|
310
305
|
|
|
311
306
|
this.logger.info(
|
|
312
307
|
`playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ${JSON.stringify(
|