TreeNode: fixed non-opened clipped child node not moving Y2 marker. (#2920)

This commit is contained in:
ocornut
2025-04-10 17:25:06 +02:00
parent ee0d96ac0d
commit 9943137d1e
3 changed files with 9 additions and 4 deletions

View File

@@ -7649,7 +7649,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
window->DC.MenuBarAppending = false;
window->DC.MenuColumns.Update(style.ItemSpacing.x, window_just_activated_by_user);
window->DC.TreeDepth = 0;
window->DC.TreeHasStackDataDepthMask = 0x00;
window->DC.TreeHasStackDataDepthMask = window->DC.TreeRecordsClippedNodesY2Mask = 0x00;
window->DC.ChildWindows.resize(0);
window->DC.StateStorage = &window->StateStorage;
window->DC.CurrentColumns = NULL;