Browse Source

Make TopLevel not can be in MirrorTransform state

pull/10065/head
daniel 4 years ago
parent
commit
ef5734e223
  1. 7
      src/Avalonia.Controls/TopLevel.cs

7
src/Avalonia.Controls/TopLevel.cs

@ -606,6 +606,13 @@ namespace Avalonia.Controls
KeyboardDevice.Instance?.SetFocusedElement(null, NavigationMethod.Unspecified, KeyModifiers.None);
}
protected override bool BypassFlowDirectionPolicies => true;
public override void InvalidateMirrorTransform()
{
// Do nothing becuase TopLevel should't apply MirrorTransform on himself.
}
ITextInputMethodImpl? ITextInputMethodRoot.InputMethod =>
(PlatformImpl as ITopLevelImplWithTextInputMethod)?.TextInputMethod;
}

Loading…
Cancel
Save