OSDN Git Service

HGゴシックM使用時に改行マークの表示するかどうかを変更するとキャレットが本来ある位置とはずれて表示される問題を解決した
authorgdkhd812 <jbh03215@htmil.co.jp>
Mon, 2 Sep 2013 09:02:15 +0000 (18:02 +0900)
committergdkhd812 <jbh03215@htmil.co.jp>
Mon, 2 Sep 2013 09:02:15 +0000 (18:02 +0900)
Common/Controller.cs

index 43e22d9..000a2de 100644 (file)
@@ -1089,6 +1089,13 @@ namespace FooEditEngine
                     this.View.PerfomLayouts();\r
                 this.AdjustCaret();\r
             }\r
+            if (e.type == ResourceType.InlineChar)\r
+            {\r
+                int oldLineCountOnScreen = this.View.LineCountOnScreen;\r
+                this.View.CalculateLineCountOnScreen();\r
+                if(this.View.LineCountOnScreen != oldLineCountOnScreen)\r
+                    this.AdjustCaret();\r
+            }\r
         }\r
 \r
         void render_ChangedRightToLeft(object sender, EventArgs e)\r