Skip to content

A question about CollapsingHeader #5787

@FratexEn

Description

@FratexEn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions