Skip to content

Commit 00418d1

Browse files
committed
Demo: Fixed mismatched TreePush/TreePop in Property Editor, due to incorrect revert in 826d771 (#1895)
1 parent d686333 commit 00418d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3220,7 +3220,7 @@ static void ShowExampleAppPropertyEditor(bool* p_open)
32203220
{
32213221
// Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well)
32223222
ImGui::AlignTextToFramePadding();
3223-
ImGui::TreeNodeEx("Field", ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet, "Field_%d", i);
3223+
ImGui::TreeNodeEx("Field", ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet, "Field_%d", i);
32243224
ImGui::NextColumn();
32253225
ImGui::PushItemWidth(-1);
32263226
if (i >= 5)

0 commit comments

Comments
 (0)