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

Error rendering entry within a grid #11878

Closed
mouralabank opened this issue Dec 5, 2022 · 8 comments
Closed

Error rendering entry within a grid #11878

mouralabank opened this issue Dec 5, 2022 · 8 comments
Labels
area-controls-entry Entry area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working

Comments

@mouralabank
Copy link

Description

I noticed in my application that the Entry is coming cut and only after making the Hover does it corrects the paint

Before hover:
image

After Hover
image

Steps to Reproduce

Just run this code:

<Grid ColumnDefinitions="auto,*,auto"
      RowDefinitions="auto,*,auto"
      BackgroundColor="Black">
    <Image Source="dotnet_bot.png" Grid.Column="0" Grid.Row="1" HeightRequest="16" WidthRequest="16"/>
    <Image Source="dotnet_bot.png" Grid.Column="2" Grid.Row="1" HeightRequest="16" WidthRequest="16"/>
    <Entry  HeightRequest="20" WidthRequest="150"  Grid.Column="1" Grid.Row="1" BackgroundColor="Red"/>
</Grid>

Link to public reproduction project repository

https://github.com/dotnet/maui/blob/main/.github/repro.md

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

windows10.0.19041.0

Did you find any workaround?

No

Relevant log output

No response

@mouralabank mouralabank added the t/bug Something isn't working label Dec 5, 2022
@danielancines
Copy link

I got the same problem, apparently the problem is with the Grid Row Height, even using Auto or *, the Entry control appears with the half height size, the workaround is use the MinimumHeightRequest to your control desired height size.

@YiannisBourkelis
Copy link

Same problem here, when scrolling a page down and going back on top, some controls disappear completely or appear corrupted.
I am in the process of migrating an existing Xamarin.Forms project to MAUI and have run into many issues with layout handling in MAUI.

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Dec 5, 2022
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Dec 6, 2022
@mouralabank
Copy link
Author

The workaround didn't work daniel, any other idea?

@PureWeen PureWeen added the s/needs-repro Attach a solution or code which reproduces the issue label Dec 6, 2022
@ghost
Copy link

ghost commented Dec 6, 2022

Hi @mouralabank. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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
Copy link

ghost commented Dec 12, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Dec 15, 2022
@hartez
Copy link
Contributor

hartez commented Dec 15, 2022

For what it's worth, I just tried pasting this markup into a new MAUI app out of curiosity - the bug does not occur.

@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Dec 15, 2022
@danielancines
Copy link

danielancines commented Dec 18, 2022

The original code it's ok now, but please take a look on this Github repo: Issue 11878, the problem appears to occur when the Entry is in the Row with Auto definition and it load not focused.

image

@danielancines
Copy link

The tests were made on Visual Studio 2022, version 17.4.0, but I updated right now to the 17.4.3 and the problem appears to be fixed. I'll run more tests.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 17, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-entry Entry area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants