.NET MAUI 10 - Can't scroll to bottom of ScrollView if keyboard is visible


I noticed the following weird behavior and I can't figure out what I am doing wrong.
(I am using .NET MAUI 10 and testing currently on Android.)

If I select Editor -> scroll up -> enter text -> UI jumps to editor -> I can scroll to the bottom
If I select Editor -> enter text -> I can't scroll to the bottom

>>GIF 1<<

What I already did is adding WindowSoftInputMode = SoftInput.AdjustResize to my MainActivity.cs.
I also tried to add SafeAreaEdges="All" to the ContentPage properties.

For testing I think this can be used:

// MainActivity.cs [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ScreenOrientation = ScreenOrientation.Portrait, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density, WindowSoftInputMode = SoftInput.AdjustResize)] public class MainActivity : MauiAppCompatActivity { }
// ViewModel
public partial class vm_Overview : ObservableObject
{
    public vm_Overview()
    {
        myList.Add("AAA");
        myList.Add("BBB");
        myList.Add("CCC");
    }

    [ObservableProperty]
    private ObservableCollection<string> myList = new();

}
// View <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" ... xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" x:DataType="vm:vm_Overview" Title="Overview"> <ScrollView> <VerticalStackLayout Padding="10" Spacing="15"> <Grid MinimumHeightRequest="500"> <Button Text="Test 1"/> </Grid> <Label Text="Label 1" /> <VerticalStackLayout BindableLayout.ItemsSource="{Binding MyList}" Spacing="5"> <BindableLayout.ItemTemplate> <DataTemplate> <VerticalStackLayout x:DataType="x:String"> <Entry Text="{Binding .}"/> </VerticalStackLayout> </DataTemplate> </BindableLayout.ItemTemplate> <BindableLayout.EmptyView> <Label Text="Empty..." MinimumHeightRequest="15" Margin="0,-5,0,0"/> </BindableLayout.EmptyView> </VerticalStackLayout> <Grid ColumnDefinitions="*,10,*"> <Button Text="Test 2" Grid.Column="0"/> </Grid> <Button Text="Test 3" MinimumHeightRequest="500"/> <Label Text="END"/> </VerticalStackLayout> </ScrollView> </ContentPage>

And here again some weird behavior when scrolling. >>GIF 2<<
(I am not able to scroll all the way down and it is also depending on the ScrollViews position when entering text how far I can scroll down.)

Thanks in advance for any hints! :)

0
May 29 at 8:54 AM
User AvatarLiFix
#android#keyboard#maui#scrollview

No answer found for this question yet.