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

Modified panel size is not persisted when dropping at edges. #444

Open
garyvh2 opened this issue Jan 12, 2024 · 0 comments
Open

Modified panel size is not persisted when dropping at edges. #444

garyvh2 opened this issue Jan 12, 2024 · 0 comments

Comments

@garyvh2
Copy link

garyvh2 commented Jan 12, 2024

Describe the bug
When you resize a panel one would expect the size or at least the ratio of its size would be kept when positioning other elements surrounding it.

To Reproduce
https://github.com/mathuo/dockview/assets/21265830/f01ddbac-3d4d-4693-95ab-ce80b67b6bdd

Resize a couple of panels on the layout (figure 1.), then drop a panel at the right edge (figure 2.), the sizes panels that were customized are changed to a ratio so all 4 columns have the same size (figure 3.).

Later on on the video you will see I resize the panels again, and when dropping at the edge, this time the ratio of size of the elements customized persist correctly.

Expected behavior
When resizing some panels (figure. 4), and dropping a panel at the edge (figure.5) the sizing of elements that were resized by a user would try to keep a ratio to the customized size when the layout is manipulated (figure 6).

Screenshots
Figure 1. Resized panels
image

Figure 2. Drop a panel at the edge
image

Figure 3. Panels size ratio are lost
image

Figure 4. Resized panels again
image

Figure 5. Drop a panel at the edge
image

Figure 6. Panels size ratio is persisted
image


Desktop (please complete the following information):

  • All
  • Latest
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