Gridview adds panels in reverse order
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
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