Browse Source

Queue caret update with correct priority.

When trying to scroll the caret into view, if we need to wait for a layout first make sure that we queue the update with a lower priority then `Layout`. `Render` is the next lowest priority so use this.

Fixes #3070
Steven Kirk 6 years ago
parent
commit
a95273902b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/Presenters/TextPresenter.cs

+ 1 - 1
src/Avalonia.Controls/Presenters/TextPresenter.cs

@@ -244,7 +244,7 @@ namespace Avalonia.Controls.Presenters
                             var rect = FormattedText.HitTestTextPosition(caretIndex);
                             this.BringIntoView(rect);
                         },
-                        DispatcherPriority.Normal);
+                        DispatcherPriority.Render);
                 }
             }
         }