dockview-core 8.5.0 → 8.5.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-core
3
- * @version 8.5.0
3
+ * @version 8.5.1
4
4
  * @link https://github.com/dockview/dockview
5
5
  * @license MIT
6
6
  */
@@ -15138,9 +15138,14 @@ var EdgeGroupView = class {
15138
15138
  get isCollapsed() {
15139
15139
  return this._isCollapsed;
15140
15140
  }
15141
+ /** Includes the gap share, as expanding restores a slot size. */
15141
15142
  get lastExpandedSize() {
15142
15143
  return this._lastExpandedSize;
15143
15144
  }
15145
+ /** Without the gap share. */
15146
+ get lastExpandedContentSize() {
15147
+ return this._lastExpandedSize - this._gapAdd;
15148
+ }
15144
15149
  get collapsedSize() {
15145
15150
  return this._effectiveBaseCollapsed + this._gapAdd;
15146
15151
  }
@@ -15204,7 +15209,7 @@ var EdgeGroupView = class {
15204
15209
  if (this._isCollapsed) this._onDidChange.fire({ size: this.collapsedSize });
15205
15210
  }
15206
15211
  layout(size, orthogonalSize) {
15207
- if (!this._isCollapsed) this._lastExpandedSize = size;
15212
+ if (!this._isCollapsed) this._lastExpandedSize = size + this._gapAdd;
15208
15213
  if (this._orientation === "horizontal") this._group.layout(size, orthogonalSize);
15209
15214
  else this._group.layout(orthogonalSize, size);
15210
15215
  }
@@ -15635,7 +15640,7 @@ var ShellManager = class {
15635
15640
  * the auto-hide peek overlay. */
15636
15641
  getEdgeGroupExpandedSize(position) {
15637
15642
  var _this$_getView$lastEx, _this$_getView2;
15638
- return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.lastExpandedSize) !== null && _this$_getView$lastEx !== void 0 ? _this$_getView$lastEx : 0;
15643
+ return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.lastExpandedContentSize) !== null && _this$_getView$lastEx !== void 0 ? _this$_getView$lastEx : 0;
15639
15644
  }
15640
15645
  _getView(position) {
15641
15646
  switch (position) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockview-core",
3
- "version": "8.5.0",
3
+ "version": "8.5.1",
4
4
  "description": "Zero dependency layout manager supporting tabs, groups, grids and splitviews for vanilla TypeScript",
5
5
  "keywords": [
6
6
  "splitview",