You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back-end: imgui_impl_sdl, imgui_impl_sdlrenderer Compiler: MSVC Operating System: Windows 11
My Issue/Question:
Using ImGuiTabBarFlags_Reorderable and changing an existing tab's label, causes said tab to be reordered as last.
This is demonstrated in the minimal example bellow. If you remove the flag, the tab's label can be changed without it automatically getting reordered.
The comment in imgui.h does mention this: "+ New tabs are appended at the end of list", so I guess when using the flag, ImGui considers this is a new tab, since it's label has changed?
How could I have manually-reorderable tabs and still be able to change their labels, while keeping the order untouched if there was no user interaction?
If you change the tab label by default it change the ID as well, from dear imgui point of view it is a new tab.
Use ### operator to change label while preserving same ID.
Version: 1.87
Branch: docking
Back-end: imgui_impl_sdl, imgui_impl_sdlrenderer
Compiler: MSVC
Operating System: Windows 11
My Issue/Question:
Using
ImGuiTabBarFlags_Reorderable
and changing an existing tab's label, causes said tab to be reordered as last.This is demonstrated in the minimal example bellow. If you remove the flag, the tab's label can be changed without it automatically getting reordered.
The comment in
imgui.h
does mention this:"+ New tabs are appended at the end of list"
, so I guess when using the flag, ImGui considers this is a new tab, since it's label has changed?How could I have manually-reorderable tabs and still be able to change their labels, while keeping the order untouched if there was no user interaction?
The text was updated successfully, but these errors were encountered: