From 1de641d756efe9a784fc0e283756e2fbc065b0e4 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Thu, 12 Feb 2026 14:11:46 +0100 Subject: [PATCH] Fix timeline seconds label overlapping frame number column The right-side time label was drawn at the viewport edge, overlapping the # column when frame numbers had 3+ digits. Now drawn at the right edge of column 1 (before the # column starts). Co-Authored-By: Claude Opus 4.6 --- ui/main_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/main_window.py b/ui/main_window.py index a714031..e2b16da 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -96,6 +96,7 @@ class TimelineTreeWidget(QTreeWidget): if first_item: # Get column positions col0_width = self.columnWidth(0) + col1_right = col0_width + self.columnWidth(1) viewport_width = self.viewport().width() # Font for time labels @@ -134,8 +135,8 @@ class TimelineTreeWidget(QTreeWidget): # Draw time label on right of column 0 painter.drawText(col0_width - text_width - 6, y_center + metrics.ascent() // 2, time_str) - # Draw time label on right of column 1 (right edge) - painter.drawText(viewport_width - text_width - 6, y_center + metrics.ascent() // 2, time_str) + # Draw time label on right of column 1 (before the # column) + painter.drawText(col1_right - text_width - 6, y_center + metrics.ascent() // 2, time_str) painter.end()