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

@@ -328,6 +328,7 @@ bool ImGui::BeginTableEx(const char* name, ImGuiID id, int columns_count, ImG
if (use_child_window && IsClippedEx(outer_rect, 0) && !outer_window_is_measuring_size)
{
ItemSize(outer_rect);
ItemAdd(outer_rect, id);
return false;
}
@@ -1462,6 +1463,7 @@ void ImGui::EndTable()
// CursorPosPrevLine and CursorMaxPos manually. That should be a more general layout feature, see same problem e.g. #3414)
if (inner_window != outer_window)
{
inner_window->DC.NavLayersActiveMask |= 1 << ImGuiNavLayer_Main; // So empty table don't appear to navigate differently.
EndChild();
}
else