Skip to content

Commit

Permalink
chore: v1.17.0 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Sep 5, 2024
1 parent 0c602af commit b24470f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/docs/blog/2024-09-05-dockview-1.17.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
slug: dockview-1.17.0-release
title: Dockview 1.17.0
tags: [release]
---

# Release Notes

Please reference docs @ [dockview.dev](https://dockview.dev).

## 🚀 Features

- Touch Support [#698](https://github.com/mathuo/dockview/pull/698)
- Initial and bounding panel sizing [#690](https://github.com/mathuo/dockview/pull/690)
- Improve group resize logic [#693](https://github.com/mathuo/dockview/pull/693)

## 🛠 Miscs

- Bug: Theme Typo [#694](https://github.com/mathuo/dockview/pull/694)
- Docs [#703](https://github.com/mathuo/dockview/pull/703)

## 🔥 Breaking changes

32 changes: 32 additions & 0 deletions packages/docs/docs/core/panels/add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,35 @@ api.addPanel({
}
});
```

### Minimum and Maximum

You can define both minimum and maxmium widths and heights, these are persisted with layouts.

:::info
Since panels exist within groups there are occasions where these boundaries will be ignored to prevent overflow and clipping issues within the dock.
:::

```ts
api.addPanel({
id: 'panel_1',
component: 'default',
minimumWidth: 100,
maximumWidth: 100,
minimumHeight: 200,
maximumHeight: 2000
});
```

### Initial Size

You can define an `initialWidth` and `initialHeight`. The dock will may a best attempt to obey these inputs but it may not always be possible due to the constraints of the grid.

```ts
api.addPanel({
id: 'panel_1',
component: 'default',
initialWidth: 100,
initialHeight: 100
});
```

0 comments on commit b24470f

Please sign in to comment.