From 5257132d9759ac05f3b0986c8d5bd8300e0eaa8a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 21 Aug 2026 19:42:51 +0200 Subject: [PATCH] Indent grouped child zone rows in the zone info window. When a child group was expanded, the member rows were not visibly indented under the group name: each row starts at the tree indent (column 0 is IndentEnable by default, and TableBeginRow() latches the open group's TreePush indent), so a single Indent() put the label two IndentSpacing from the cell origin. The group header, however, leads with the source location color box plus item spacing before its tree arrow, so its name starts four IndentSpacing further right than the member labels - the child list read as a continuation of the header row instead of a subtree. Add a second Indent() (and the balancing Unindent()) so the member labels land clearly to the right of the group name. The full-row Selectable behavior is unchanged. GPU zones are unaffected: their rows carry no color box, so the member labels were already one level right of the group name. --- profiler/src/profiler/TracyView_ZoneInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index 8dcd64b8..633dd332 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -1358,6 +1358,7 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime ) ImGui::TableNextRow(); ImGui::TableNextColumn(); ImGui::Indent(); + ImGui::Indent(); ImGui::PushID( (int)cgr.v[cti[i]] ); if( ImGui::Selectable( txt, &b, ImGuiSelectableFlags_SpanAllColumns ) ) { @@ -1374,6 +1375,7 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime ) } ImGui::PopID(); ImGui::Unindent(); + ImGui::Unindent(); ImGui::TableNextColumn(); const auto part = double( ctt[cti[i]] ) * rztime; char buf[128];