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

Collapsible panels #18

Open
noirb opened this issue Feb 13, 2022 · 4 comments
Open

Collapsible panels #18

noirb opened this issue Feb 13, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@noirb
Copy link

noirb commented Feb 13, 2022

I'm curious if it might be possible to support collapsible panels, similar to these ones in Blender:
GIF 2-13-2022 2-14-09 PM

It would probably only make sense to allow docked panels to be collapsed, and I think ideally it should be optionally enabled for individual panels.

@yasirkula
Copy link
Owner

I'll mark this as a feature request. Right now, setting a panel's Min Size Y value to 0 is the closest thing to this. I don't think this feature can be fully integrated without first supporting tabs on the left/right sides, though.

@yasirkula yasirkula added the enhancement New feature or request label Feb 13, 2022
@noirb
Copy link
Author

noirb commented Feb 13, 2022

Thanks!

Yeah, I can think of a few ways to collapse/expand a panel, but determining when to spawn the < button to let the user re-expand a collapsed panel and docking it to the adjacent edge/panel seems a little less straightforward. Would be easier with an OnPanelResized event to, e.g., disable any panel less than a few pixels wide, but I'm not sure how hard it could be to dock a non-Panel object (or is there a way to create alternate Panels which can work with the docking system but don't include any tabs, etc?).

@yasirkula
Copy link
Owner

Only Panels (GameObject) and PanelGroups (plain C# objects that represent horizontal/vertical layout groups) are dockable. Creating panels with no tabs will require modifications because empty panels are destroyed as far as I remember.

I can't give this feature request any thought for the time being so I may not be able to give you useful insights about how it can be implemented.

@ibytergj
Copy link

ibytergj commented Dec 9, 2024

I know this has been out there a long time but I would also find this feature useful

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

No branches or pull requests

3 participants