TabBar: expose NextScrollToTabId to internal API.

This commit is contained in:
ocornut
2026-01-30 18:41:40 +01:00
parent a9ca61a7ce
commit 4b8e41cffb
2 changed files with 7 additions and 1 deletions

View File

@@ -9801,6 +9801,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;