-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CollectionView with ItemSpacing => Infinite layout loop Android #21379
Comments
@rudyspano I ran your sample locally and I'm not seeing an infinite loop The break point inside Also the Repro you've provided doesn't compile out of the box. It's missing a style, so perhaps the repro isn't correct? |
@PureWeen , I have updated the sample with a Console output. Don't you see a lot of call of propertychanged with values near 158 (cell HeightRequest) ? |
@rudyspano it looks like your repro didn't finish uploading
No, the property changed event doesn't fire for me after everything has settled |
Alright, I was able to reproduce in 8.0.7 |
@PureWeen , ok good news 🙂. Thanks for your investigation. |
@rudyspano can you test the latest nightly and see if you are still seeing this issue? Can you test with the latest nightly build? |
@PureWeen , I confirm that fixes the issue ! (in my repro and more complex project) Is it also fixed by this PR https://github.com/dotnet/maui/pull/21409/files ? Thanks |
awesome thank you for testing @rudyspano!! I think it was this PR that fixed it I couldn't reproduce the issue when I was working on 21409 so that's my guess. Does this issue match what you're curious about with measuring? My guess is that what's happening with measure is that it's just a result of converting forward and backwards and after taking into account platform paddings/margins. Though I don't know for sure. I'm going to close this issue for now. |
Description
A CollectionView with an ItemSpacing of 1 i causes infinite changes of Cell content controls Height on Android.
As you can see in video and simple repro project
RefreshViewlayoutloop.mov
=> Huge performance Impact.
Reproducible since 8.0.10 then 8.0.14.
Not reproducible in 8.0.6
Simple repro project in attachment.
reprov2.zip
Height values imprecisions, probably due to Android px to MAUI dp conversion..?
Steps to Reproduce
See repro project.
Link to public reproduction project repository
No response
Version with bug
8.0.14 and 8.0.10
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms
Last version that worked well
8.0.6 SR1
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
Not using ItemSpacing
Relevant log output
No response
The text was updated successfully, but these errors were encountered: