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

A question about CollapsingHeader #5787

Closed
FratexEn opened this issue Oct 17, 2022 · 1 comment
Closed

A question about CollapsingHeader #5787

FratexEn opened this issue Oct 17, 2022 · 1 comment
Labels
label/id and id stack implicit identifiers, pushid(), id stack

Comments

@FratexEn
Copy link

I was wondering if it's possible to have two different collapsing headers with the same id on the two different places in the code and make them appear as one collapsing header.

if (ImGui::CollapsingHeader("name1"))
{
	ImGui::Text("1");
}

// Some other code 

if (ImGui::CollapsingHeader("name1"))
{
	ImGui::Text("2");
}

How it looks now
image

How I would like it to look
image

Version: v1,88
Branch: master
glfw/opengl3/Win10

@ocornut
Copy link
Owner

ocornut commented Oct 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
label/id and id stack implicit identifiers, pushid(), id stack
Projects
None yet
Development

No branches or pull requests

2 participants