}
else if(caret_y >= alignedHeight)
{
- double caretYFromTextArea = Math.Min(caret_y - alignedHeight, alignedHeight - lineHeight);
+ double caretYFromTextArea = alignedHeight;
var newsrc = this.GetNearstRowAndOffsetY(tp.row, -caretYFromTextArea);
if(newsrc == null)
this.Document.Src = new SrcPoint(this.Src.X, tp.row, 0);