dockview icon indicating copy to clipboard operation
dockview copied to clipboard

Gridview adds panels in reverse order

Open husayt opened this issue 1 year ago • 1 comments

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 avatar Feb 13 '24 17:02 husayt

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

husayt avatar Apr 18 '24 16:04 husayt