You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to not have an empty central node if there's other node adjacent to it. Instead when removing the last window docked into the central node, the closest dock node should fill the available space, and turn into the new central node.
Is there anything to be aware of before attempting to add this functionality?
I see ImGuiDockNodeFlags_NoCentralNode is commented since the line was introduced, so maybe there's a reason for that.
DockContextProcessUndockNode has this in a comment:
// In the case of a root node or central node, the node will have to stay in place.
Comment before ImGui::DockSpace's code:
// The Central Node is always displayed even when empty and shrink/extend according to the requested size of its neighbors.
The text was updated successfully, but these errors were encountered:
franciscod
changed the title
ImGuiDockNodeFlags_NoCentralNode
[docking] Trying to avoid an empty central node
Apr 27, 2020
ocornut
changed the title
[docking] Trying to avoid an empty central node
Docking: Trying to avoid an empty central node
Apr 27, 2020
Version: 1.77 WIP @ 7ddc1ad
Branch: docking
Back-ends: imgui_impl_sdl_gl3.cpp
OS: Linux
I would like to not have an empty central node if there's other node adjacent to it. Instead when removing the last window docked into the central node, the closest dock node should fill the available space, and turn into the new central node.
Is there anything to be aware of before attempting to add this functionality?
I see ImGuiDockNodeFlags_NoCentralNode is commented since the line was introduced, so maybe there's a reason for that.
DockContextProcessUndockNode has this in a comment:
Comment before
ImGui::DockSpace
's code:The text was updated successfully, but these errors were encountered: