AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology

Home Page:https://avaloniaui.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SafeAreaPadding is zero when keyboard is in view

kerams opened this issue · comments

Describe the bug

The SafeAreaPadding value reported from InsetsManager.SafeAreaChanged is always zero. This is a regression compared to 11.0.10.

To Reproduce

Subscribe to TopLevel.InsetsManager.SafeAreaChanged, print SafeAreaPadding and open/close the Android keyboard.

Expected behavior

No response

Avalonia version

11.1.0-beta2

OS

Android

Additional context

No response

That's by design.

Keyboard taking over the screen is not part of the insets.
To handle on screen keyboard (or other types of input panels), use TopLevel.InputPane API.