From a1566c5e1ba22755c359e3079f5f25ab53f1eafb Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 21 May 2024 12:35:22 +0200 Subject: [PATCH] Tables: fixed 28a283b breaking PageDown on tables with no interactive items. --- imgui_tables.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui_tables.cpp b/imgui_tables.cpp index b3725347c..60cdec2bd 100644 --- a/imgui_tables.cpp +++ b/imgui_tables.cpp @@ -1469,8 +1469,10 @@ 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) { + short backup_nav_layers_active_mask = inner_window->DC.NavLayersActiveMask; inner_window->DC.NavLayersActiveMask |= 1 << ImGuiNavLayer_Main; // So empty table don't appear to navigate differently. EndChild(); + inner_window->DC.NavLayersActiveMask = backup_nav_layers_active_mask; } else {