1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-16 12:03:27 +01:00

Docking: Fixed using ImGuiDockNodeFlags_AutoHideTabBar with ConfigDockingTabBarOnSingleWindows. (#2109)

This commit is contained in:
omar 2019-07-15 14:17:01 -07:00
parent dd80db87a6
commit 8bc6d976cb

View File

@ -11855,6 +11855,11 @@ void ImGui::DockContextProcessDock(ImGuiContext* ctx, ImGuiDockRequest* req)
DockSettingsRenameNodeReferences(payload_dock_id, node->ID); 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 // Update selection immediately
if (ImGuiTabBar* tab_bar = node->TabBar) if (ImGuiTabBar* tab_bar = node->TabBar)