From 5cbf06ba310b7b369b296d0814fb04d76f6d4f41 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 3 Sep 2022 23:09:23 +0200 Subject: [PATCH] Only clip timeline item contents. Timeline item header may overflow over other items, e.g. the crash marker is taller than the header line. --- server/TracyTimelineItem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index e964ad26..ed8a2c30 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -53,6 +53,8 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2 } } + ImGui::PopClipRect(); + float labelWidth; const auto hdrOffset = oldOffset; const bool drawHeader = yPos + ty >= yMin && yPos <= yMax; @@ -110,7 +112,6 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2 offset += 0.2f * ostep; AdjustThreadHeight( firstFrame, oldOffset, offset ); - ImGui::PopClipRect(); ImGui::PopID(); }