From c623a730657a26105a1d8afc03c0ddde4d3f229f Mon Sep 17 00:00:00 2001 From: Jonathan Hoffstadt Date: Wed, 16 Feb 2022 09:42:40 -0600 Subject: [PATCH] fix (mvTreeNode): indent bleeding #1604 (#1605) --- DearPyGui/src/ui/AppItems/containers/mvTreeNode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DearPyGui/src/ui/AppItems/containers/mvTreeNode.cpp b/DearPyGui/src/ui/AppItems/containers/mvTreeNode.cpp index 08ddf917e..b06349c68 100644 --- a/DearPyGui/src/ui/AppItems/containers/mvTreeNode.cpp +++ b/DearPyGui/src/ui/AppItems/containers/mvTreeNode.cpp @@ -89,6 +89,8 @@ void mvTreeNode::draw(ImDrawList* drawlist, float x, float y) if (!*_value) { ImGui::EndGroup(); + if (config.indent > 0.0f) + ImGui::Unindent(config.indent); return; }