xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

Adding the last element of scrollview as label and called the ScrollToAsync the ScrollToPosition.End to scroll at bottom but the soft keyboard overlapped the label below the entry. #11489

Open jeyakasipandi opened 4 years ago

jeyakasipandi commented 4 years ago

Description

When adding the last element of scrollview as label and called the ScrollToAsync the ScrollToPosition.End to scroll at bottom but the soft keyboard overlapped the label below the entry.

Steps to Reproduce

  1. Add the label below the entry control as the last element in scroll view.
  2. In the entry focused event , called the ScrollToAsync method to set the label as scroll at end.
  3. Run the sample and focus on the entry, label below the entry was overlapped by keyboard.

Expected Behavior

When focus on the entry, the label below the entry should be visible

Actual Behavior

Entry border is visible but the below label is not visible.

Basic Information

Code Snippet

[XAML]

C#:

    private void Entry_Focused(object sender, FocusEventArgs e)
    {
           if (label != null)
           {
            await scrollView.ScrollToAsync(label, ScrollToPosition.End, true);
           }
    }

Reproduction Link

Workaround

PureWeen commented 4 years ago

It looks like this works fine on iOS

When I tested on Android it's pretty hit or miss. My guess is that Forms trying to be smart about position is colliding with the scroll behavior

mrhemalatha commented 4 years ago

Any update on this?

mrhemalatha commented 4 years ago

Any update?

MuneeshKumarG commented 3 years ago

Any update in this?

Yuvasrisivakumar commented 3 years ago

Any update?

Yuvasrisivakumar commented 3 years ago

Any update on this?

Yuvasrisivakumar commented 3 years ago

Any update on this?

Yuvasrisivakumar commented 3 years ago

Any update on this?

Eswaran17392 commented 3 years ago

Any update on this?

Eswaran17392 commented 2 years ago

Any update on this?

henda79 commented 2 years ago

I have the same issue, but I doubt it will ever be fixed. We will more than likely only see critical fixes to Xamarin now since the priority is on MAUI.