maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android] Alert Dialog With Onscreen Keyboard Open Causes ScrollView Area to Cut Off

Open mpkagel opened this issue 3 years ago • 4 comments
trafficstars

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:

  1. Run sample project in Android.
  2. Open the flyout menu.
  3. Click Browse to go to the Browse page.
  4. Click the Add button.
  5. Click on the Text entry to bring up the soft keyboard and focus on that entry.
  6. Click the "OpenAlert" button in the nav bar at the top of the screen.
  7. Click OK to dismiss the alert dialog.
  8. Minimize the soft keyboard using the lower-left arrow button on the Android emulator.
  9. 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

mpkagel avatar Mar 31 '22 21:03 mpkagel

Verified issue repro with Visual Studio Enterprise 2022 17.2.32317.152 on Android. Repro with above project.

image

XamlTest avatar Apr 01 '22 00:04 XamlTest

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.

ghost avatar Aug 30 '22 15:08 ghost

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.

ghost avatar Nov 11 '22 16:11 ghost

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

PureWeen avatar Nov 11 '22 16:11 PureWeen