Fix selected line out of sight w lage font - thx Leon :)

Fix #5593
This commit is contained in:
niksedk 2021-12-11 16:46:48 +01:00
parent 7432536495
commit 6f64d3f373

View File

@ -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)
{