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
pull/3075/head
Steven Kirk 7 years ago
parent
commit
a95273902b
  1. 2
      src/Avalonia.Controls/Presenters/TextPresenter.cs

2
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);
}
}
}

Loading…
Cancel
Save