You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve group activation and panel content visibility after tab header space drag (#991)
Fixes GitHub issue #991 where dragging tab header space (empty area) to different
positions caused panel content to disappear and groups to become inactive.
## Changes
**Core Fix (3 minimal changes):**
- Fix panel activation logic to ensure first/active panels render correctly
- Restore group activation for center case moves (root drop to edge zones)
- Fix group activation for non-center moves using correct target group
**Comprehensive Test Suite:**
- Added 5 targeted tests validating the fix for various scenarios
- Tests cover single/multi-panel groups, center/non-center moves, and skipSetActive
- Ensures both panel content rendering and group activation work correctly
## Technical Details
The root cause was in `moveGroup()` method where:
1. Panel content disappeared due to incorrect `skipSetActive: true` for all panels
2. Groups became inactive due to activation calls inside `movingLock()`
3. Non-center moves failed activation when source group was destroyed
**Fixed in dockviewComponent.ts:**
- `skipSetActive: panel \!== activePanel` - ensures active panel renders (line 2347)
- `doSetGroupAndPanelActive(to)` - activates target group for center moves (line 2354)
- `const targetGroup = to ?? from` - uses correct group for non-center activation (line 2485)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments