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

Does ImGui support setting the minimum size for a dock? #8403

Open
pipiwoaini opened this issue Feb 14, 2025 · 2 comments
Open

Does ImGui support setting the minimum size for a dock? #8403

pipiwoaini opened this issue Feb 14, 2025 · 2 comments
Labels

Comments

@pipiwoaini
Copy link

Version/Branch of Dear ImGui:

Version 1.91.5, Branch: docking

Back-ends:

imgui_impl_SDL3.cpp + imgui_impl_SDL3Renderer.cpp

Compiler, OS:

Window11 + VS2019

Full config/build information:

No response

Details:

I am using the Docking feature of ImGui, but the splitter can be dragged very small, down to only 32px. This is because WindowMinSize = ImVec2(32,32); (the default minimum window size is 32). How can I set the minimum size of the docking window without changing the WindowMinSize?

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
@ocornut
Copy link
Owner

ocornut commented Feb 14, 2025

Hello,
It's not currently possible.

@pipiwoaini
Copy link
Author

So currently, is the only way to prevent the docking splitter from becoming too small by using WindowMinSize, or is there another solution?

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

No branches or pull requests

2 participants