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

Gridview adds panels in reverse order #507

Open
husayt opened this issue Feb 13, 2024 · 1 comment
Open

Gridview adds panels in reverse order #507

husayt opened this issue Feb 13, 2024 · 1 comment

Comments

@husayt
Copy link

husayt commented Feb 13, 2024

Describe the bug
When adding panels with Gridview via event.api.addPanel they appear in wrong order. For example, with vertical layout the panel added first goes to bottom and panel added second goes to top. Should be the other way round. (Dockview has oppoite behavior, so it is ok, only the gridview.)

To Reproduce
https://codesandbox.io/p/sandbox/github/mathuo/dockview/blob/master/packages/docs/sandboxes/react/gridview/simple?file=%2Fsrc%2Findex.tsx

Steps to reproduce the behavior:
Just run the example and you will see panel 1 in the bottom.

Expected behavior
Panel 1 should be at the top.

  • Version 1.9.2
@husayt
Copy link
Author

husayt commented Apr 18, 2024

Hi, @mathuo just wanted to check if this is a bug or expected behavior

Thanks

PS: I updated the link for repo

https://codesandbox.io/p/sandbox/github/mathuo/dockview/blob/master/packages/docs/sandboxes/react/gridview/simple?file=%2Fsrc%2Findex.tsx

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

1 participant