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

Default sizes aren't respected on nested allotments when visible is false by default #799

Open
vonangelo opened this issue Apr 26, 2024 · 0 comments
Assignees

Comments

@vonangelo
Copy link

On later versions (>= v1.18) there seems to be an issue when using a combination of nested allotments, default sizes and with some pane invisible by default.

In my scenario, I have a outer allotment with two panes - both visible all the time and with sizes set. In the right pane, I have a inner allotment with another two panes - left is visible all the time and the right is invisible by default, but can be shown by a button click, also with sizes set.

If using v1.17, everything works just fine. But using versions above mentioned, the invisible pane is shown with a much smaller size when set as visible. Hopefully it makes sense.

Here's a codesandbox fork showing the issue: https://codesandbox.io/p/sandbox/nested-forked-36vhnq
As mentioned before, if I simply change the version to v1.17, everything works just fine.

Am I mistaken, or is there a different newer way of achieving this result? I can't seems to find it anywhere.

@johnwalley johnwalley self-assigned this May 22, 2024
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

No branches or pull requests

2 participants