Skip to content

Commit

Permalink
fix: a horizontal group glues to previous line when its first child i…
Browse files Browse the repository at this point in the history
…s invisible (#1999) (#2002)
  • Loading branch information
v-ein authored Jan 7, 2023
1 parent 396ec0a commit 61d6794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mvContainers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61d6794

Please sign in to comment.