[Android] Window currently doesn't apply AdjustPan so the view doesn't pan up (scroll) when the keyboard opens #11274
Labels
area-keyboard
Keyboard, soft keyboard
fixed-in-7.0.52
Look for this fix in 7.0.52 SR1.1!
fixed-in-7.0.100
fixed-in-7.0.101
fixed-in-8.0.0-preview.1.7762
Look for this fix in 8.0.0-preview.1.7762!
platform/android 🤖
Milestone
Description
Original issue here
In XF
Window.SetSoftInputMode(Android.Views.SoftInput.AdjustPan);
would get called after theOnCreate
call whereas in MAUI it's called beforeOnCreate
. It seems like this causes the property to have no effectIf you call this method after
OnCreate
than everything starts to work like XF.Reproduction
If you take the
XAML
below and test a few different permutations, you'll notice that the behavior isn't currently consistent when you open a keyboardIf you test this scenario on XF all permutations work the same
Workaround
Install the nuget here
or
Copy the handler and associated code from here into your code
The text was updated successfully, but these errors were encountered: