-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Issues with docking in window with no padding #2717
Comments
What I'm trying to accomplish with that window is just having a dock space that covers the entire app window. I know I can dock windows into one another, but then I have to manually resize everything to try to cover the entire client area of the app window. |
Thanks Andre, i don’t have the code in front of me so full answer is probably going to have to wait a few days. At a glance your code seems right so I wouldn’t rule out the possibility of a bug.
Please note that there is a function, i think called DockspaceOverViewport() function that does essentially what you are trying to do, and looking at it you may discover some meaningful difference.
|
The code is similar but uses I'll leave this open since there may be a bug, like you said. |
This got fixed by @Black-Cat in #3519, apologies for not reacting on this since you found `DockSpaceOverViewport(). The reason I couldn't immediately understand the issue is that it would only happen if the host window doesn't have the I will also alter the Demo to point users toward |
I will be adding this comment at the top of
|
No problem, I'm glad it's fixed. |
Version/Branch of Dear ImGui:
Version: v1.72b
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_sdl.cpp + imgui_impl_opengl2.cpp
Compiler: gcc 7.4.0
Operating System: Ubuntu 18.04.2 LTS 64-bit
My Issue/Question:
I'm trying to make an invible window that stays in the background and takes the entire app window size to serve as a base where other windows can dock.
Everything works fine but when I try to remove the padding from that window, the first window that is docked is maximized instead.
Screenshots/Video
Standalone, minimal, complete and verifiable example:
Here.
The text was updated successfully, but these errors were encountered: