Browse Source

More adjustments

pull/11848/head
Benedikt Stebner 3 years ago
parent
commit
86b3b70e5f
  1. 2
      src/Avalonia.Base/Input/TextInput/TextInputMethodClient.cs
  2. 2
      src/Avalonia.Controls/TextBoxTextInputMethodClient.cs

2
src/Avalonia.Base/Input/TextInput/TextInputMethodClient.cs

@ -59,7 +59,7 @@ namespace Avalonia.Input.TextInput
/// </summary> /// </summary>
public virtual void SetPreeditText(string? preeditText) { } public virtual void SetPreeditText(string? preeditText) { }
protected virtual void OnTextViewVisualChanged(Visual? oldValue, Visual? newValue) protected virtual void OnTextViewVisualChanged()
{ {
TextViewVisualChanged?.Invoke(this, EventArgs.Empty); TextViewVisualChanged?.Invoke(this, EventArgs.Empty);
} }

2
src/Avalonia.Controls/TextBoxTextInputMethodClient.cs

@ -142,7 +142,7 @@ namespace Avalonia.Controls
_presenter.CaretBoundsChanged += (s, e) => OnCursorRectangleChanged(); _presenter.CaretBoundsChanged += (s, e) => OnCursorRectangleChanged();
} }
OnTextViewVisualChanged(oldPresenter, presenter); OnTextViewVisualChanged();
OnCursorRectangleChanged(); OnCursorRectangleChanged();
} }

Loading…
Cancel
Save