mirror of
https://github.com/mathuo/dockview
synced 2025-02-15 12:55:44 +00:00
chore: v1.17.0 release notes
This commit is contained in:
parent
0c602afab5
commit
b24470fa42
23
packages/docs/blog/2024-09-05-dockview-1.17.0.md
Normal file
23
packages/docs/blog/2024-09-05-dockview-1.17.0.md
Normal file
@ -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
|
||||||
|
|
@ -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
|
||||||
|
});
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user