Skip to content
New issue

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

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

Already on GitHub? # to your account

Weird behavior with nested SplitPanes #804

Open
pcdv opened this issue Nov 21, 2021 · 1 comment
Open

Weird behavior with nested SplitPanes #804

pcdv opened this issue Nov 21, 2021 · 1 comment

Comments

@pcdv
Copy link

pcdv commented Nov 21, 2021

Describe the bug

When I have two nested SplitPanes, the deepest one can be dragged above (or under) its parent.

Not sure if it is a bug or I'm doing something wrong. Maybe it's just a matter of adding the right CSS somewhere.

But it looks like the split can be moved outside of its expected min/max size. The
behavior is the same when changing split from horizontal to vertical.

To Reproduce

See https://codesandbox.io/s/fancy-thunder-n68cg

Expected behavior

It should not be possible to drag the split outside the bounds of its container.

Screenshots

image

Additional context

I'm using react-split-pane in https://github.com/pcdv/react-docky

@pcdv
Copy link
Author

pcdv commented Jan 16, 2022

Found out that the behavior is a bit better if I set primary="second". At least, the first split cannot make the blue div disappear. But the green div can still be dragged over the two other ones.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant