From 61d6794b900fc16c2ff19039925f67a93e73c3cd Mon Sep 17 00:00:00 2001 From: Vladimir Ein Date: Sat, 7 Jan 2023 08:11:43 +0500 Subject: [PATCH] fix: a horizontal group glues to previous line when its first child is invisible (#1999) (#2002) --- src/mvContainers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mvContainers.cpp b/src/mvContainers.cpp index cfecaf25c..7527b3406 100644 --- a/src/mvContainers.cpp +++ b/src/mvContainers.cpp @@ -1138,7 +1138,7 @@ DearPyGui::draw_group(ImDrawList* drawlist, mvAppItem& item, mvGroupConfig& conf child->draw(drawlist, ImGui::GetCursorPosX(), ImGui::GetCursorPosY()); - if (config.horizontal) + if (config.horizontal && child->config.show) ImGui::SameLine((1 + child->info.location) * config.xoffset, config.hspacing); if (child->config.tracked)