From 6f64d3f3733caba040ebda56a944907d10c1e6dd Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 11 Dec 2021 16:46:48 +0100 Subject: [PATCH] Fix selected line out of sight w lage font - thx Leon :) Fix #5593 --- src/ui/Controls/SubtitleListView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/Controls/SubtitleListView.cs b/src/ui/Controls/SubtitleListView.cs index 26fd3de55..c0b24d281 100644 --- a/src/ui/Controls/SubtitleListView.cs +++ b/src/ui/Controls/SubtitleListView.cs @@ -1693,7 +1693,7 @@ namespace Nikse.SubtitleEdit.Controls return; } - int bottomIndex = TopItem.Index + (Height - 25) / 16; + int bottomIndex = TopItem.Index + (Height - 30) / GetItemRect(0).Height; int itemsBeforeAfterCount = (bottomIndex - TopItem.Index) / 2 - 1; if (itemsBeforeAfterCount < 0) {