dockview-react 8.7.0 → 8.7.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-react
3
- * @version 8.7.0
3
+ * @version 8.7.1
4
4
  * @link https://github.com/dockview/dockview
5
5
  * @license MIT
6
6
  */
@@ -51,7 +51,7 @@ react_dom = __toESM(react_dom);
51
51
  //#region ../dockview-core/dist/package/main.esm.mjs
52
52
  /**
53
53
  * dockview-core
54
- * @version 8.7.0
54
+ * @version 8.7.1
55
55
  * @link https://github.com/dockview/dockview
56
56
  * @license MIT
57
57
  */
@@ -15121,6 +15121,8 @@ react_dom = __toESM(react_dom);
15121
15121
  const strip = this._group.element.querySelector(".dv-tabs-and-actions-container");
15122
15122
  if (!strip) return;
15123
15123
  this._tabSizeDisposables.addDisposables(watchElementResize(strip, () => {
15124
+ const { headerPosition } = this._group;
15125
+ if ((headerPosition === "left" || headerPosition === "right") !== (this._orientation === "horizontal")) return;
15124
15126
  this._applyMeasuredTabSize(this._orientation === "vertical" ? strip.offsetHeight : strip.offsetWidth);
15125
15127
  }));
15126
15128
  }
@@ -17146,7 +17148,14 @@ react_dom = __toESM(react_dom);
17146
17148
  if (options.autoHide !== void 0) service.setAutoHide(group, options.autoHide);
17147
17149
  if (options.autoReveal !== void 0) service.setAutoReveal(group, options.autoReveal);
17148
17150
  this._onDidAddGroup.fire(group);
17149
- this._shellManager.addEdgeView(position, options, group);
17151
+ const host = {
17152
+ element: group.element,
17153
+ get headerPosition() {
17154
+ return group.model.headerPosition;
17155
+ },
17156
+ layout: (width, height) => group.layout(width, height)
17157
+ };
17158
+ this._shellManager.addEdgeView(position, options, host);
17150
17159
  return group.api;
17151
17160
  });
17152
17161
  }