Windows: BeginChild(), Tables:fixed visibility of fully clipped child windows and tables to Test Engine.

This commit is contained in:
ocornut
2024-05-21 10:54:30 +02:00
parent aa5a6098ee
commit 28a283b460
4 changed files with 7 additions and 2 deletions

View File

@@ -5612,7 +5612,9 @@ void ImGui::EndChild()
else
{
// Not navigable into
ItemAdd(bb, 0);
// - This is a bit of a fringe use case, mostly useful for undecorated, non-scrolling contents childs, or empty childs.
// - We could later decide to not apply this path if ImGuiChildFlags_FrameStyle or ImGuiChildFlags_Borders is set.
ItemAdd(bb, child_window->ChildId, NULL, ImGuiItemFlags_NoNav);
// But when flattened we directly reach items, adjust active layer mask accordingly
if (child_window->Flags & ImGuiWindowFlags_NavFlattened)