mirror of
https://github.com/mathuo/dockview
synced 2026-01-25 06:13:09 +00:00
Resolves issue #869 where setConstraints calls would not persist after refresh and could not override addPanel constraints. Changes: - Fix critical bug in DockviewGroupPanel constructor (minimumWidth was using maximumHeight) - Restore setConstraints method to DockviewPanelApi by removing from Omit list - Implement explicit constraint tracking to allow group constraints to override panel constraints - Add constraint change listener to track when setConstraints is called explicitly - Update constraint getter precedence: explicit setConstraints > panel constraints > defaults - Update tests to reflect new behavior where group constraints can override panel constraints The new constraint hierarchy ensures that: 1. Explicit setConstraints calls take highest priority 2. Panel constraints from addPanel are used when no explicit group constraints exist 3. Group defaults are used as fallback 4. Constraints persist properly after page refresh 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Project Structure
This mono-repository has a number of packages containing the code for the dockview library and the documentation website dockview.dev.
dockview-core
- Contains the core logic for the dockview library.
- Written entirely in vanilla JavaScript/TypeScript.
dockview
- Depends on
dockview-core. - Exports a
Reactwrapper. - Published as dockview on npm.
docs
- Code for dockview.dev.