Skip to content

Commit

Permalink
Docking: Fixed using ImGuiDockNodeFlags_AutoHideTabBar with ConfigDoc…
Browse files Browse the repository at this point in the history
…kingTabBarOnSingleWindows. (ocornut#2109)
  • Loading branch information
ocornut committed Jul 15, 2019
1 parent dd80db8 commit 8bc6d97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8bc6d97

Please sign in to comment.