Skip to content

fix: clear destination gap margin on cross-group chip drop (#1243)#1247

Merged
mathuo merged 1 commit intomasterfrom
fix/1243-cross-group-residual-gap
May 8, 2026
Merged

fix: clear destination gap margin on cross-group chip drop (#1243)#1247
mathuo merged 1 commit intomasterfrom
fix/1243-cross-group-residual-gap

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented May 8, 2026

Cross-group tab-group drops delegated to moveGroupOrPanel without clearing the destination's dragover-applied gap margin. moveGroupOrPanel inserts new panels but does not recreate existing destination tabs, so the inline margin-left set by applyDragOverTransforms persisted as a visible gap next to the dropped group. The local-smooth path already called resetTabTransforms; the cross-group path now does the same.

Description

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

How to test

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

Cross-group tab-group drops delegated to moveGroupOrPanel without
clearing the destination's dragover-applied gap margin. moveGroupOrPanel
inserts new panels but does not recreate existing destination tabs, so
the inline margin-left set by applyDragOverTransforms persisted as a
visible gap next to the dropped group. The local-smooth path already
called resetTabTransforms; the cross-group path now does the same.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

@mathuo mathuo merged commit 600a3df into master May 8, 2026
9 checks passed
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.

Dropping a tab group to the left of an existing tab results in extra spacing between the two

1 participant