Skip to content

Conversation

mathuo
Copy link
Owner

@mathuo mathuo commented Jul 18, 2025

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

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 <[email protected]>
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit eec2ae0:

Sandbox Source
customheader-dockview Configuration
dockview-app Configuration
editor-gridview Configuration
externaldnd-dockview Configuration
fullwidthtab-dockview Configuration
iframe-dockview Configuration
keyboard-dockview Configuration
nativeapp-dockview Configuration
rendering-dockview Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant