Skip to content

Commit

Permalink
Fixed inconsistent line positions with screens less than 4 lines
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Jan 18, 2025
1 parent 8c290ed commit fad7f87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def _create_line_event(self, line: LyricsLine, y_position: int, style: Style, sc

def _calculate_first_line_position(self) -> int:
"""Calculate vertical position of first line."""
total_height = len(self.lines) * self.line_height
total_height = self.MAX_VISIBLE_LINES * self.line_height
top_padding = self.line_height # Add one line height of padding at the top
return top_padding + (self.video_size[1] - total_height - top_padding) // 4

Expand Down

0 comments on commit fad7f87

Please sign in to comment.