Browse Source

Fix TextBlock wrong caret position (#14627)

pull/14649/head
Donzasto 3 years ago
committed by GitHub
parent
commit
cde90ccbca
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Controls/TextBox.cs

2
src/Avalonia.Controls/TextBox.cs

@ -923,6 +923,8 @@ namespace Avalonia.Controls
} }
else if (change.Property == SelectionEndProperty) else if (change.Property == SelectionEndProperty)
{ {
_presenter?.MoveCaretToTextPosition(CaretIndex);
OnSelectionEndChanged(change); OnSelectionEndChanged(change);
} }
else if (change.Property == MaxLinesProperty) else if (change.Property == MaxLinesProperty)

Loading…
Cancel
Save