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

Can other dock elements auto-resize when another dock has been collapsed? #258

Closed
trippsc2 opened this issue Dec 23, 2022 · 3 comments
Closed
Labels
bug Something isn't working enhancement New feature or request

Comments

@trippsc2
Copy link

trippsc2 commented Dec 23, 2022

This may be me misunderstanding how the controls work and interact. When I pin all tools in a tool dock, the extra space created becomes white space and the docks do not make use of the vacated space. My current layout tree looks like this.

  • RootDock
    • RootDock
      • ProportionalDock
        • ToolDock (IsCollapsable = true)
        • ProportionalDockSplitter
        • DocumentDock

What I am looking to accomplish is a look similar to Rider's UI, where I have multiple tools that can dock on the left, bottom, or right of the main window or float, but cannot be moved to the main document dock. If all of these tools on a side are pinned, the tool dock collapses and the document dock reclaims the space. I would prefer to not lose the ability to resize the tools when they are unpinned.

Is this possible in the current implementation and/or is there some coaxing I can do to make this work?

@wieslawsoltes
Copy link
Owner

Not yet implemented.

@wieslawsoltes wieslawsoltes added the enhancement New feature or request label Dec 28, 2022
@majeric
Copy link

majeric commented Jan 3, 2023

I don't know if this would give you some insight in a solution for this issue but when you move a ToolDock, the other components around it expand as expected to fill the space. Only when you collapse a ToolDock does it seem to leave a gap.
In your DockXamlExample, collapse the SolutionExplorer vs move the SolutionExplorer and you'll see the difference in behaviour. I would expect the gap should be filled when collapsing in the way that the gap is filled when it's moved.

@wieslawsoltes wieslawsoltes added the bug Something isn't working label Apr 13, 2023
@BAndysc
Copy link
Contributor

BAndysc commented Mar 10, 2024

#324 Fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants