@raydiant/playlist-window-manager 0.26.1-rc1 → 0.26.1

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.
@@ -86,9 +86,13 @@ var BrowserWindowRenderer = /** @class */ (function () {
86
86
  // Create a hidden window to preload BrowserViews.
87
87
  this.offscreenWindow = new electron_1.BrowserWindow({
88
88
  show: false,
89
+ /**
90
+ * This option fixes window not being able to take fullscreen leaving
91
+ * 1px gap at the right and bottom of the screen.
92
+ */
93
+ resizable: false,
89
94
  frame: this.opts.frame,
90
95
  hasShadow: this.opts.hasShadow,
91
- resizable: false,
92
96
  webPreferences: {
93
97
  preload: path.join(__dirname, 'preload.js'),
94
98
  contextIsolation: false,
@@ -125,8 +129,12 @@ var BrowserWindowRenderer = /** @class */ (function () {
125
129
  })
126
130
  : this.createOrGetPooledBrowserWindow(windowId, {
127
131
  show: false,
128
- frame: this.opts.frame,
132
+ /**
133
+ * This option fixes window not being able to take fullscreen leaving
134
+ * 1px gap at the right and bottom of the screen.
135
+ */
129
136
  resizable: false,
137
+ frame: this.opts.frame,
130
138
  // NOTE: useWindowPool: true does not work with renderChildWindowsAsBrowserViews: false
131
139
  // because the parent can't be changed after creating the BrowserWindow.
132
140
  parent: parentWindowId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raydiant/playlist-window-manager",
3
- "version": "0.26.1-rc1",
3
+ "version": "0.26.1",
4
4
  "description": "Window manager for playlist playback.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -63,9 +63,13 @@ export default class BrowserWindowRenderer
63
63
  // Create a hidden window to preload BrowserViews.
64
64
  private offscreenWindow = new BrowserWindow({
65
65
  show: false,
66
+ /**
67
+ * This option fixes window not being able to take fullscreen leaving
68
+ * 1px gap at the right and bottom of the screen.
69
+ */
70
+ resizable: false,
66
71
  frame: this.opts.frame,
67
72
  hasShadow: this.opts.hasShadow,
68
- resizable: false,
69
73
  webPreferences: {
70
74
  preload: path.join(__dirname, 'preload.js'),
71
75
  contextIsolation: false,
@@ -111,8 +115,12 @@ export default class BrowserWindowRenderer
111
115
  })
112
116
  : this.createOrGetPooledBrowserWindow(windowId, {
113
117
  show: false,
114
- frame: this.opts.frame,
118
+ /**
119
+ * This option fixes window not being able to take fullscreen leaving
120
+ * 1px gap at the right and bottom of the screen.
121
+ */
115
122
  resizable: false,
123
+ frame: this.opts.frame,
116
124
  // NOTE: useWindowPool: true does not work with renderChildWindowsAsBrowserViews: false
117
125
  // because the parent can't be changed after creating the BrowserWindow.
118
126
  parent: parentWindowId