Skip to content

Commit

Permalink
Demo: Fixed mismatched TreePush/TreePop in Property Editor, due to in…
Browse files Browse the repository at this point in the history
…correct revert in 826d771 (#1895)
  • Loading branch information
ocornut committed Jun 22, 2018
1 parent d686333 commit 00418d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,7 @@ static void ShowExampleAppPropertyEditor(bool* p_open)
{
// Here we use a TreeNode to highlight on hover (we could use e.g. Selectable as well)
ImGui::AlignTextToFramePadding();
ImGui::TreeNodeEx("Field", ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_Bullet, "Field_%d", i);
ImGui::TreeNodeEx("Field", ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_Bullet, "Field_%d", i);
ImGui::NextColumn();
ImGui::PushItemWidth(-1);
if (i >= 5)
Expand Down

0 comments on commit 00418d1

Please sign in to comment.