custom-electron-titlebar 4.2.1 → 4.2.3

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.
@@ -178,6 +178,10 @@ class CustomTitlebar extends _get__("themebar_1").ThemeBar {
178
178
  (0, _get__("dom_1").append)(this.titlebar, this.controlsContainer);
179
179
  }
180
180
  setupContainer() {
181
+ const containerOverflow = this.currentOptions.containerOverflow;
182
+ if (containerOverflow) {
183
+ this.container.style.overflow = containerOverflow;
184
+ }
181
185
  while (document.body.firstChild) {
182
186
  (0, _get__("dom_1").append)(this.container, document.body.firstChild);
183
187
  }
@@ -262,6 +266,7 @@ class CustomTitlebar extends _get__("themebar_1").ThemeBar {
262
266
  }
263
267
  updateMenu(menu) {
264
268
  if (_get__("platform_1").isMacintosh || !menu) return;
269
+ if (this.menuBar) this.menuBar.dispose();
265
270
  this.menuBar = new (_get__("menubar_1").MenuBar)(this.menuBarContainer, _get__("consts_1").menuIcons, this.currentOptions, {
266
271
  enableMnemonics: true
267
272
  }, this.closeMenu); // TODO: Verify menubar options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "custom-electron-titlebar",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Library for electron that allows you to configure a fully customizable title bar.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "typesVersions": {
@@ -66,4 +66,4 @@
66
66
  "tsc-alias": "1.8.6",
67
67
  "typescript": "5.0.4"
68
68
  }
69
- }
69
+ }