fix: removed line spacing for the last potential element

This commit is contained in:
2024-05-22 01:36:37 +02:00
parent 60b1682a5a
commit a12e7fcb9d

View File

@@ -43,7 +43,7 @@ impl Runner {
.expect(&format!("Error loading font {}", font_path)); .expect(&format!("Error loading font {}", font_path));
window_height = (PADDING window_height = (PADDING
+ ((font.height() as u16 + settings.line_spacing) * (1 + settings.rows))) + ((font.height() as u16 + settings.line_spacing) * (1 + settings.rows)) - settings.line_spacing + PADDING)
.into(); .into();
} }