Description:
When I set a minimum width for a panel and then add multiple panels side by side, eventually the dock container becomes full. At that point, opening new panels or dragging/splitting existing panels pushes them off-screen, making them inaccessible. This happens even though each panel respects its minimum width.
Steps to Reproduce:
- Set a minimum width for panels in Dockview (e.g., 296px).
- Add multiple panels side by side until the dock container is full.
- Try opening or dragging another panel to split beside an existing panel.
Expected Behavior:
- Panels should remain fully visible and not be pushed off-screen.
- The Dockview container should not rely on scrolling to handle overflow.
We’re using Dockview’s split-view/grid-view layout with the following container styles:
.dv-split-view-container {
position: relative;
overflow: hidden;
height: 100%;
width: 100%;
}
When panels are added using the API, each panel is given a minimum width:
api?.addPanel({
minimumWidth: 296,
});
