Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitter/SplitterPanel: Unable to support divider dragging for more than two SplitterPanels in a Splitter component #6487

Closed
pcioffi-rtts opened this issue Apr 26, 2024 · 1 comment · Fixed by #6490
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@pcioffi-rtts
Copy link

Describe the bug

Having a Splitter component with three or more panels under it causes issues when using the dividers for resizing; the left-most divider seems to work/behave fine, but upon using the right-most divider causes the left-most panel to resize wrongly (see gif for clarification)

PrimeReactSplitterThreePanelIssue

Reproducer

https://stackblitz.com/edit/draygx-s1dwup?file=src%2FApp.jsx

PrimeReact version

10.6.3

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@pcioffi-rtts pcioffi-rtts added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 26, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 27, 2024
@KirilCycle
Copy link
Contributor

KirilCycle commented Apr 28, 2024

This happens because the 'onResizeEnd' method applies the wrong dimensions to the 'panelSizes' state. Let me try to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants