From 8bc6d976cbe82611435e4f1c10c405bbd83573e4 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 15 Jul 2019 14:17:01 -0700 Subject: [PATCH] Docking: Fixed using ImGuiDockNodeFlags_AutoHideTabBar with ConfigDockingTabBarOnSingleWindows. (#2109) --- imgui.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index dcb7c3b7f..2751c76b9 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -11855,6 +11855,11 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req) DockSettingsRenameNodeReferences(payload_dock_id, node->ID); } } + else + { + // When docking a floating single window node we want to reevaluate auto-hiding of the tab bar + node->WantHiddenTabBarUpdate = true; + } // Update selection immediately if (ImGuiTabBar* tab_bar = node->TabBar)