TabBar: expose NextScrollToTabId to internal API.

This commit is contained in:
ocornut
2026-01-30 18:41:40 +01:00
parent 921842e8a1
commit 913a3c6056
2 changed files with 7 additions and 1 deletions

View File

@@ -9816,6 +9816,11 @@ static void ImGui::TabBarLayout(ImGuiTabBar* tab_bar)
// Setup next selected tab
ImGuiID scroll_to_tab_id = 0;
if (tab_bar->NextScrollToTabId)
{
scroll_to_tab_id = tab_bar->NextScrollToTabId;
tab_bar->NextScrollToTabId = 0;
}
if (tab_bar->NextSelectedTabId)
{
tab_bar->SelectedTabId = tab_bar->NextSelectedTabId;