maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android] Entry control: Closing onscreen keyboard manually resizes modal page height

Open SailDev opened this issue 3 years ago • 9 comments

Description

On a modal page, i enter some text in an entry control. When i close the onscreen keyboard manually, the modal page height gets resized and reveals parts of the underneath page.

This behaviour does only occur, if you actually enter some value in the entry control.

A B
Screenshot_1666960004 Screenshot_1666960018

Steps to Reproduce

  1. Create a new Maui app (net6.0).
  2. Add a ContentPage (Page1).
  3. Add 2 Entry controls to Page1.
  4. Use the "OnCounterClicked" event handler, to open Page1 as modal page (await Navigation.PushModalAsync(new Page1());)
  5. Run the app.
  6. Open Page1.
  7. Enter something in the Entry control.
  8. Close the onscreen keyboard manually.

Link to public reproduction project repository

https://github.com/SailDev/Net-Maui-bug-reproduction-example-001.git

Version with bug

7.0 Release Candidate 2

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

No response

Relevant log output

No response

SailDev avatar Oct 28 '22 13:10 SailDev

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 Oct 28 '22 14:10 ghost

Having the same issue. On iOS, the keyboard overlaps the content. On Android the content gets scrolled out fine, so that the current entry is not overlapped by the keyboard. However there, after dismissing the content stays scrolled out, like described in the issues above.

So both, iOS and Android have issues while using a modal and a keyboard shows up.

AndreasReitberger avatar Oct 29 '22 04:10 AndreasReitberger

@AndreasReitberger Did you get any temporary solution to this problem? Or should I wait for the next releases?

Kremed avatar Nov 02 '22 18:11 Kremed

@Kremed Sadly no... ☹️ I'm also waiting for fix for this issue.

AndreasReitberger avatar Nov 02 '22 18:11 AndreasReitberger

Last version that worked well

  • Android 10 ✅
  • Samsung Note 9

Kremed avatar Nov 02 '22 19:11 Kremed

@jamesmontemagno any suggestions?

Kremed avatar Nov 06 '22 19:11 Kremed

Can you try the workaround from this issue? https://github.com/dotnet/maui/issues/11274

See if that resolves this for you?

I was able to reproduce this issue and then when I applied that workaround it no longer reproduced

PureWeen avatar Nov 10 '22 23:11 PureWeen

I can confirm this worked for me. Thanks !

RonnyRos avatar Nov 11 '22 08:11 RonnyRos

Tested and it solves the problem. Many THANKS!

SailDev avatar Nov 11 '22 09:11 SailDev