Skip to content
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

ImGui::BeginTable and ImGui::Separator() exceed the node boundaries #38

Open
Nanke2012 opened this issue Nov 28, 2024 · 2 comments
Open

Comments

@Nanke2012
Copy link

Nanke2012 commented Nov 28, 2024

These elements are not constrained by the node boundaries
void draw() override
{
ImGui::Text("ID:%d",mId);
ImGui::Separator();
if (ImGui::BeginTable("table", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg)) {
ImGui::TableSetupColumn("Key");
ImGui::TableSetupColumn("Value");
ImGui::TableHeadersRow();
ImGui::TableNextRow();
ImGui::TableSetColumnIndex(0);
ImGui::TextWrapped("%s", "key1");
ImGui::TableSetColumnIndex(1);
ImGui::TextWrapped("%s", "value1");
ImGui::EndTable();
}
}

@Nanke2012
Copy link
Author

2024-11-28 100218

@Fattorino
Copy link
Owner

Have you tried removing ImGui::Separator();? I feel like that might be the one breaking everything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants