maui
maui copied to clipboard
[Android] Alert Dialog With Onscreen Keyboard Open Causes ScrollView Area to Cut Off
Description
Opening an alert dialog with the onscreen keyboard open causes the scrollview to not occupy the entire screen after the onscreen keyboard has been minimized. I've attached a sample project to try and demonstrate the issue. MauiFlyout.zip
Steps to Reproduce
Steps to reproduce:
- Run sample project in Android.
- Open the flyout menu.
- Click Browse to go to the Browse page.
- Click the Add button.
- Click on the Text entry to bring up the soft keyboard and focus on that entry.
- Click the "OpenAlert" button in the nav bar at the top of the screen.
- Click OK to dismiss the alert dialog.
- Minimize the soft keyboard using the lower-left arrow button on the Android emulator.
- At this state of the screen the scroll view still works but it isn't taking up the area where the soft keyboard was like it probably should be, and that's the issue that I'm trying to point out.
Version with bug
Preview 14 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
Snackbar messages from Maui Community Toolkit don't seem to have this problem. Snackbar messages aren't always a good substitute for alert dialogs, but I thought I'd mention it here.
Relevant log output
No response
Verified issue repro with Visual Studio Enterprise 2022 17.2.32317.152 on Android. Repro with above project.

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Hi @mpkagel. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
I tested the attached sample with the latest net7.0 and it no longer seems to reproduce.
I'm guessing that this was fixed or if you're still seeing the issue, it should be resolved by https://github.com/dotnet/maui/issues/11274