diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 00:09:23 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 00:09:23 +0300 |
commit | 5cbf06ba310b7b369b296d0814fb04d76f6d4f41 (patch) | |
tree | bc56157f8bce9d52a6f03a63d10ef39c9445e274 /server | |
parent | 840709fe46e16e36428122a7a4433b3cad8536f5 (diff) |
Only clip timeline item contents.
Timeline item header may overflow over other items, e.g. the crash marker is
taller than the header line.
Diffstat (limited to 'server')
-rw-r--r-- | server/TracyTimelineItem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |