question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grid View Row is not working as expected

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
riccardominatocommented, Oct 30, 2022

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.

0reactions
PureWeencommented, Nov 29, 2022

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

Thank you for testing!!

I’m going to close this issue as fixed by https://github.com/dotnet/maui/pull/11356

If that seems incorrect @sattasundar let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Grid not working as expected with rows
I'm trying to accomplish a grid that the 4th column takes place in the first and second row without pushing the second row...
Read more >
Setting a value using Gridview.SetRowCellValue to some ...
Setting a value using Gridview.SetRowCellValue to some rows in a Grid view not working as expected when columns are sorted.
Read more >
GridView - Filter 'contains' does not work for filter row
Hi,. The issue occurs because the en-US column isn't filled with values. From the GridView's point of view, it's an empty column with...
Read more >
Issues saving to SharePoint lists in grid view
I've been trying to make changes to some SharePoint lists in grid view. The changes to a particular list item will only save...
Read more >
Common Flutter errors
The error is often caused when a ListView (or other kinds of scrollable widgets such as GridView ) is placed inside a Column...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found