OSDN Git Service

キャレットがはみ出るバグを修正した
authortest <test@yahoo.co.jp>
Tue, 15 Dec 2020 11:03:27 +0000 (20:03 +0900)
committertest <test@yahoo.co.jp>
Tue, 15 Dec 2020 11:03:27 +0000 (20:03 +0900)
Core/EditView.cs

index fa9a17c..48781ce 100644 (file)
@@ -741,7 +741,7 @@ namespace FooEditEngine
                 //キャレットのY座標を求める
                 double lineHeight = this.render.emSize.Height;
                 double caret_y = this.Src.OffsetY;  //src.rowからキャレット位置
-                double alignedHeight = PhyLineCountOnScreen * this.render.emSize.Height;
+                double alignedHeight = PhyLineCountOnScreen * lineHeight - lineHeight;
                 for (int i = this.Src.Row; i < tp.row; i++)
                 {
                     int lineHeadIndex = this.LayoutLines.GetIndexFromLineNumber(i);