@raydiant/playlist-window-manager 0.0.0-test-6 → 0.0.0-test-7

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.
@@ -96,8 +96,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
96
96
  opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor1 ".concat(JSON.stringify(opts.bounds)));
97
97
  // TODO zlv added
98
98
  this.offscreenWindow.setFullScreen(true);
99
- // TODO zlv commented out
100
- // this.offscreenWindow.setBounds(opts.bounds);
99
+ this.offscreenWindow.setBounds(opts.bounds);
101
100
  opts.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ".concat(JSON.stringify({
102
101
  bounds: this.offscreenWindow.getBounds(),
103
102
  normalBounds: this.offscreenWindow.getNormalBounds(),
@@ -193,6 +192,7 @@ var BrowserWindowRenderer = /** @class */ (function () {
193
192
  if (window.view instanceof electron_1.BrowserWindow) {
194
193
  this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5: setFullScreen");
195
194
  window.view.setFullScreen(true);
195
+ window.view.setBounds(window.bounds);
196
196
  }
197
197
  else {
198
198
  this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds");
@@ -242,14 +242,9 @@ var BrowserWindowRenderer = /** @class */ (function () {
242
242
  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
243
  // Child BrowserWindows are absolutely positioned so we need to add the main windows
244
244
  // x/y to when updating the child window's bounds.
245
- // TODO zlv commented out
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
245
  // TODO zlv added
252
246
  window.view.setFullScreen(true);
247
+ window.view.setBounds(__assign(__assign({}, window.bounds), { x: window.bounds.x + this.opts.bounds.x, y: window.bounds.y + this.opts.bounds.y }));
253
248
  this.logger.info("playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ".concat(JSON.stringify({
254
249
  bounds: window.view.getBounds(),
255
250
  normalBounds: window.view.getNormalBounds(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.0.0-test-6",
3
+ "version": "0.0.0-test-7",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -79,8 +79,7 @@ export default class BrowserWindowRenderer
79
79
  );
80
80
  // TODO zlv added
81
81
  this.offscreenWindow.setFullScreen(true);
82
- // TODO zlv commented out
83
- // this.offscreenWindow.setBounds(opts.bounds);
82
+ this.offscreenWindow.setBounds(opts.bounds);
84
83
  opts.logger.info(
85
84
  `playlist-window-manager/src/BrowserWindowRenderer.ts constructor2 ${JSON.stringify(
86
85
  {
@@ -240,6 +239,7 @@ export default class BrowserWindowRenderer
240
239
  `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow5: setFullScreen`
241
240
  );
242
241
  window.view.setFullScreen(true);
242
+ window.view.setBounds(window.bounds);
243
243
  } else {
244
244
  this.logger.info(
245
245
  `playlist-window-manager/src/BrowserWindowRenderer.ts createWindow6: setBounds`
@@ -299,14 +299,13 @@ export default class BrowserWindowRenderer
299
299
 
300
300
  // Child BrowserWindows are absolutely positioned so we need to add the main windows
301
301
  // x/y to when updating the child window's bounds.
302
- // TODO zlv commented out
303
- // window.view.setBounds({
304
- // ...window.bounds,
305
- // x: window.bounds.x + this.opts.bounds.x,
306
- // y: window.bounds.y + this.opts.bounds.y,
307
- // });
308
302
  // TODO zlv added
309
303
  window.view.setFullScreen(true);
304
+ window.view.setBounds({
305
+ ...window.bounds,
306
+ x: window.bounds.x + this.opts.bounds.x,
307
+ y: window.bounds.y + this.opts.bounds.y,
308
+ });
310
309
 
311
310
  this.logger.info(
312
311
  `playlist-window-manager/src/BrowserWindowRenderer.ts updateWindowBounds3: ${JSON.stringify(