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 (hoffstadt#1999)
  • Loading branch information
v-ein committed Jan 6, 2023
1 parent 396ec0a commit 5c7ea4b
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 5c7ea4b

Please # to comment.