dockview icon indicating copy to clipboard operation
dockview copied to clipboard

fix: resolve IndexOutOfBounds and incorrect ordering when dragging po…

Open mathuo opened this issue 4 months ago • 1 comments

…pout panels

Fixes GitHub issue #1004 where dragging single panels from popout windows back into the dock caused IndexOutOfBounds errors and incorrect positioning.

Changes:

  • Replace error-throwing bounds check with index clamping in tabs.ts
  • Add special validation for popout panel drops in dockviewComponent.ts
  • Ensure calculated drop indices are within valid bounds for destination groups

🤖 Generated with Claude Code

mathuo avatar Sep 09 '25 22:09 mathuo

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 eda3afa3b387fae856ae611163083f3d176f77e8:

Sandbox Source
externaldnd-dockview Configuration
fullwidthtab-dockview Configuration
iframe-dockview Configuration
keyboard-dockview Configuration
nativeapp-dockview Configuration
rendering-dockview Configuration

codesandbox-ci[bot] avatar Sep 09 '25 22:09 codesandbox-ci[bot]