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

Add support for priorization or calculation via a hook when distributing available space in DockView #590

Open
qcz opened this issue Apr 28, 2024 · 0 comments

Comments

@qcz
Copy link
Contributor

qcz commented Apr 28, 2024

When removing a panel from a row or column of panels, the remaining space is always equally redistributed between all the remaining panels. It is not always desirable, because the user may have perfectly configured layout with a left side list and a central panel, and just opened a side panel for a moment. After closing the side panel, Dockview unnecessarily resizes the list on the left instead of giving the space back to the central panel (which came from the central panel originally when opening the panel).

It would be nice if we could somehow specify which panels should get the newly freed space and in which ratio.

For example:

  • The central panel should get all the space.
  • The central panel should get 2-3x the free space than other open panels in that row/column.
@mathuo mathuo linked a pull request Apr 29, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant