@raydiant/playlist-window-manager 0.0.0-test-3 → 0.0.0-test-4

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.
@@ -95,6 +95,12 @@ var BrowserWindowRenderer = /** @class */ (function () {
95
95
  this.proxySettings = null;
96
96
  opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor1 ".concat(JSON.stringify(opts.bounds)));
97
97
  this.offscreenWindow.setBounds(opts.bounds);
98
+ opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ".concat(JSON.stringify({
99
+ bounds: this.offscreenWindow.getBounds(),
100
+ normalBounds: this.offscreenWindow.getNormalBounds(),
101
+ contentBounds: this.offscreenWindow.getContentBounds(),
102
+ })));
103
+ this.offscreenWindow.maximize(); // TODO zlv added
98
104
  if (opts.proxySettings) {
99
105
  this.proxySettings = opts.proxySettings;
100
106
  }
@@ -166,6 +172,11 @@ var BrowserWindowRenderer = /** @class */ (function () {
166
172
  window.view.webContents.on('unresponsive', window.unresponsiveCallback);
167
173
  if (window.view instanceof electron_1.BrowserView) {
168
174
  this.moveWindowOffscreen(window);
175
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow2: ".concat(JSON.stringify({
176
+ bounds: this.offscreenWindow.getBounds(),
177
+ normalBounds: this.offscreenWindow.getNormalBounds(),
178
+ contentBounds: this.offscreenWindow.getContentBounds(),
179
+ })));
169
180
  }
170
181
  this.windows[windowId] = window;
171
182
  // Listen for messages from window.
@@ -175,8 +186,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
175
186
  // Electron issue: https://github.com/electron/electron/issues/20357
176
187
  window.view.setBackgroundColor(backgroundColor === 'transparent' ? '#00000000' : backgroundColor);
177
188
  }
178
- this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow2: ".concat(JSON.stringify(window.bounds)));
189
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow3: ".concat(JSON.stringify(window.bounds)));
179
190
  window.view.setBounds(window.bounds);
191
+ this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ".concat(JSON.stringify(window.view.getBounds())));
180
192
  if (!this.proxySettings) return [3 /*break*/, 2];
181
193
  return [4 /*yield*/, window.view.webContents.session.setProxy(this.proxySettings)];
182
194
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test-3",
3
+ "version": "0.0.0-test-4",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -78,6 +78,17 @@ export default class BrowserWindowRenderer
78
78
  )}`
79
79
  );
80
80
  this.offscreenWindow.setBounds(opts.bounds);
81
+ opts.logger.info(
82
+ `playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ${JSON.stringify(
83
+ {
84
+ bounds: this.offscreenWindow.getBounds(),
85
+ normalBounds: this.offscreenWindow.getNormalBounds(),
86
+ contentBounds: this.offscreenWindow.getContentBounds(),
87
+ }
88
+ )}`
89
+ );
90
+
91
+ this.offscreenWindow.maximize(); // TODO zlv added
81
92
  if (opts.proxySettings) {
82
93
  this.proxySettings = opts.proxySettings;
83
94
  }
@@ -193,6 +204,15 @@ export default class BrowserWindowRenderer
193
204
 
194
205
  if (window.view instanceof BrowserView) {
195
206
  this.moveWindowOffscreen(window);
207
+ this.logger.info(
208
+ `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow2: ${JSON.stringify(
209
+ {
210
+ bounds: this.offscreenWindow.getBounds(),
211
+ normalBounds: this.offscreenWindow.getNormalBounds(),
212
+ contentBounds: this.offscreenWindow.getContentBounds(),
213
+ }
214
+ )}`
215
+ );
196
216
  }
197
217
 
198
218
  this.windows[windowId] = window;
@@ -208,11 +228,16 @@ export default class BrowserWindowRenderer
208
228
  }
209
229
 
210
230
  this.logger.info(
211
- `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow2: ${JSON.stringify(
231
+ `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow3: ${JSON.stringify(
212
232
  window.bounds
213
233
  )}`
214
234
  );
215
235
  window.view.setBounds(window.bounds);
236
+ this.logger.info(
237
+ `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow4: ${JSON.stringify(
238
+ window.view.getBounds()
239
+ )}`
240
+ );
216
241
 
217
242
  if (this.proxySettings) {
218
243
  await window.view.webContents.session.setProxy(this.proxySettings);