Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid View Row is not working as expected #9458

Closed
sattasundar opened this issue Aug 16, 2022 · 7 comments · Fixed by #11356
Closed

Grid View Row is not working as expected #9458

sattasundar opened this issue Aug 16, 2022 · 7 comments · Fixed by #11356
Labels
area-controls-entry Entry area-keyboard Keyboard, soft keyboard fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! layout-grid platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@sattasundar
Copy link

Description

I have created sample app in both Xamarin.Forms and MAUI. And create same ui in a page using Grid , which seems different behavior.

The issue is , we can't fix any view/control at the bottom of Grid. It getting moved along with keyboard while focused on Entry control like below;

Xamarin.Forms Result:

xamarin forms

MAUI Result:

maui

Steps to Reproduce

Sample XAML Code:

 <Grid VerticalOptions="FillAndExpand">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <ScrollView VerticalOptions="FillAndExpand">
                <StackLayout Spacing="25"
                             Padding="30,0"
                             VerticalOptions="Center">
                    <Entry Placeholder="Type here..."
                           BackgroundColor="ForestGreen"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                    <Label Text="Hello World!"
                           HorizontalOptions="Center"
                           FontSize="Medium"/>
                </StackLayout>
            </ScrollView>
            <Button Grid.Row="1" Text="Click Me!"
                BackgroundColor="Green"
                HeightRequest="70"
                CornerRadius="35"
                    VerticalOptions="End"/>
        </Grid>

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

No response

Relevant log output

No response

@sattasundar sattasundar added the t/bug Something isn't working label Aug 16, 2022
@PureWeen PureWeen added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Aug 16, 2022
@PureWeen PureWeen added this to the Backlog milestone Aug 16, 2022
@ghost
Copy link

ghost commented Aug 16, 2022

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.

@sattasundar
Copy link
Author

Is this issue going to resolve in upcoming releases? Because this is affecting in so many scenario.

@riccardominato
Copy link

This is still a problem. It causes weird behaviors when using Entries with Grids, two widely used components.

I experienced an issue similar to the one described here in the very first page (a simple login page) I developed for an application in .NET MAUI.

@hartez hartez added area-controls-entry Entry area-keyboard Keyboard, soft keyboard labels Oct 31, 2022
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Oct 31, 2022
@PureWeen
Copy link
Member

PureWeen commented Nov 29, 2022

@riccardominato @sattasundar in your project if you add the following code does it resolve the issue for you?

image

public class MainActivity : MauiAppCompatActivity
{

    protected override void OnCreate(Bundle savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        Window.SetSoftInputMode(Android.Views.SoftInput.AdjustPan);
    }
}

@PureWeen PureWeen added the s/needs-info Issue needs more info from the author label Nov 29, 2022
@ghost
Copy link

ghost commented Nov 29, 2022

Hi @sattasundar. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. 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.

@riccardominato
Copy link

Thank you @PureWeen. Your hint solved the issue for me.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Nov 29, 2022
@PureWeen
Copy link
Member

Thank you @PureWeen. Your hint solved the issue for me.

Thank you for testing!!

I'm going to close this issue as fixed by #11356

If that seems incorrect @sattasundar let me know.

@PureWeen PureWeen closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Dec 29, 2022
@samhouts samhouts added the fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! label Feb 16, 2023
@samhouts samhouts modified the milestones: Backlog, .NET 7 + Servicing Feb 16, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Feb 22, 2023
@samhouts samhouts added fixed-in-7.0.101 platform/android 🤖 and removed area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Jan 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-entry Entry area-keyboard Keyboard, soft keyboard fixed-in-7.0.52 Look for this fix in 7.0.52 SR1.1! fixed-in-7.0.100 fixed-in-7.0.101 fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! layout-grid platform/android 🤖 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants