-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using SubTables in repeated child windows used to work and now it doesnt #8226
Comments
Hello,
From which version?
It's not 100% clear what's not working nor what you are expecting to be a "working" situation. That said, the code itself is unusual code that it is worth looking at. {
ImGui::Begin("Sub Window");
ImGui::BeginTable("Testing Table", 1, ImGuiTableFlags_Borders);
ImGui::TableNextColumn();
ImGui::Text("TestingText");
ImGui::End();
}
{
ImGui::Begin("Sub Window");
ImGui::TableNextColumn();
ImGui::Text("TestingText2");
ImGui::EndTable();
ImGui::End();
} Everything else seems unrelated to the issue. First of all, out of clarity: names passed to Begin() are "absolute" in the sense that they are not derived from the ID Stack. So the first call to Begin("Sub Window") will create a window, and the second call to it will append to the already created window. But looking at the code I believe you already understood that. 1.91.3 added error recovery systems (main commit is 30c29d2) which among other things will automatically call Indeed it is possible that this worked before but it was probably a little bit undefined behavior and prone to issues. It would be healthier to understand what precisely you are aiming to do so you can find alternative ways. |
Version/Branch of Dear ImGui:
Version v1.91.6 WIP, Branch: docking/stack layouts
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 11 + Unreal Engine
Full config/build information:
Details:
My Issue/Question:
This code snippet used to work in an older version if ImGui and since updating doesn't.
Was what i was doing techincally not supposed to be possible and now the API has been corrected to make that impossible?
Or should what I'm doing still be possible
Im designing an custom items api that allows you to submit items to a Hierarchal structure and allow you to drag and drop, the api will handle all the complex table manipulation and adjusting the windows and stuff to give a convincing drag and drop experience
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: