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
Your problem is the same as #2599. If you are not submitting a dockspace, windows docked into it gets undocked.
Your solution here would be to call DockSpace() with the ImGuiDockNodeFlags_KeepAliveOnly flags for all the "hidden" dockspaces to let the system know that they haven't been dropped.
This would probably requires a little bit of refactor of the structure above. I would compute all the dockspace id before the call to BeginTabItem(), record which tab is visible, and then at the end submit all dockspace which haven't been submitted but with the ImGuiDockNodeFlags_KeepAliveOnly flag.
PS: Calling BeginTabItem() with ImGuiTabBarFlags_ values instead of ImGuiTabItemFlags_ values is incorrect.
Version: 1.72b
Branch: docking
Operating System: windows 10
Hello, I am having an issue where the windows refuse to stay docked on startup and when i change tabs.
Here is the setup:
`
I am most likely doing things wrong.
could someone explain a better approach to creating a dock on each tab in tab view?
Thanks for the help!
The text was updated successfully, but these errors were encountered: